diff options
author | Alan Modra <amodra@gmail.com> | 2006-06-20 14:34:08 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2006-06-20 14:34:08 +0000 |
commit | e36284abcf727bced126cad8c8a1cc7ba33ad6c2 (patch) | |
tree | d308125ac4028d70454f104f164a817f53ffd42e /bfd/elf-bfd.h | |
parent | add68859a914922df926ec91edeb3282dcf86cd4 (diff) | |
download | gdb-e36284abcf727bced126cad8c8a1cc7ba33ad6c2.zip gdb-e36284abcf727bced126cad8c8a1cc7ba33ad6c2.tar.gz gdb-e36284abcf727bced126cad8c8a1cc7ba33ad6c2.tar.bz2 |
* elf-bfd.h (struct elf_backend_data): Add
elf_backend_modify_program_headers.
* elfxx-target.h (elf_backend_modify_program_headers): Define.
(elfNN_bed): Init new field.
* elf.c (elf_modify_segment_map): Remove comment.
(assign_file_positions_for_load_sections): Only call
elf_modify_segment_map for objcopy/strip.
(assign_file_positions_except_relocs): Call
elf_backend_modify_program_headers.
* elf32-frv.c (elf32_frvfdpic_always_size_sections): Don't make
.stack section.
(elf32_frvfdpic_modify_segment_map): Delete.
(elf32_frvfdpic_modify_program_headers): New.
(elf_backend_modify_segment_map): Don't define.
(elf_backend_modify_program_headers): Define.
* elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Don't make
.stack section.
(elf32_bfinfdpic_modify_segment_map): Delete.
(elf32_bfinfdpic_modify_program_headers): New.
(elf_backend_modify_segment_map): Don't define.
(elf_backend_modify_program_headers): Define.
* elfxx-ia64.c (elfNN_ia64_modify_program_headers): New function.
Split out from..
(elfNN_ia64_modify_segment_map): ..here.
(elf_backend_modify_program_headers): Define.
Diffstat (limited to 'bfd/elf-bfd.h')
-rw-r--r-- | bfd/elf-bfd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 9813416..95686d3 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -836,6 +836,11 @@ struct elf_backend_data bfd_boolean (*elf_backend_modify_segment_map) (bfd *, struct bfd_link_info *); + /* This function is called to modify program headers just before + they are written. */ + bfd_boolean (*elf_backend_modify_program_headers) + (bfd *, struct bfd_link_info *); + /* This function is called during section garbage collection to mark sections that define global symbols. */ bfd_boolean (*gc_mark_dynamic_ref) |