diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-05 20:00:42 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-05 20:00:42 +0000 |
commit | fa15568ac1035f9835938d24a4053c2250378775 (patch) | |
tree | 1136999911b1758ded42443eaa8026675f1ecb76 /bfd/elf32-target.h | |
parent | a04e14b672841adf465895609d5f42441299e165 (diff) | |
download | gdb-fa15568ac1035f9835938d24a4053c2250378775.zip gdb-fa15568ac1035f9835938d24a4053c2250378775.tar.gz gdb-fa15568ac1035f9835938d24a4053c2250378775.tar.bz2 |
Changes to support ELF strip and objcopy on dynamically linked
files.
* elfcode.h (elf_fake_sections): Add prototype.
(bfd_section_from_shdr): Make a BFD section from an SHT_HASH
section, and from an SHT_DYNSYM section, and from the dynamic
string table section.
(elf_object_p): Set D_PAGED if there is a program header.
(elf_make_sections): Remove.
(fix_up_strtabs): Remove.
(elf_fake_sections): Rewrite. Now sets sh_entsize.
(assign_section_numbers): Rewrite. Now sets sh_link and sh_info
for all sections.
(elf_compute_section_file_positions): Don't call obsolete
functions elf_make_sections or fix_up_strtabs.
(swap_out_syms): Set sh_addralign to FILE_ALIGN rather than 4.
(NAME(bfd_elf,write_object_contents)): Permit writing DYNAMIC
objects.
(elf_section_from_bfd_section): Treat SHT_DYNSYM like other normal
sections. If an SHT_REL or SHT_RELA section is allocated or uses
an unusual symbol table, permit a BFD section to map to it.
Permit most SHT_STRTAB sections to have a BFD section mapped to
them.
(elf_bfd_final_link): Don't set sh_link, sh_info or sh_entsize
fields of dynamic sections here; do it in assign_section_numbers.
* elf32-target.h, elf64-target.h: Add D_PAGED to permitted object
flags.
Diffstat (limited to 'bfd/elf32-target.h')
-rw-r--r-- | bfd/elf32-target.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf32-target.h b/bfd/elf32-target.h index ae31876..6192ad5 100644 --- a/bfd/elf32-target.h +++ b/bfd/elf32-target.h @@ -194,7 +194,7 @@ bfd_target TARGET_BIG_SYM = /* object_flags: mask of all file flags */ (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | - DYNAMIC | WP_TEXT), + DYNAMIC | WP_TEXT | D_PAGED), /* section_flags: mask of all section flags */ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY | @@ -282,7 +282,7 @@ bfd_target TARGET_LITTLE_SYM = /* object_flags: mask of all file flags */ (HAS_RELOC | EXEC_P | HAS_LINENO | HAS_DEBUG | HAS_SYMS | HAS_LOCALS | - DYNAMIC | WP_TEXT), + DYNAMIC | WP_TEXT | D_PAGED), /* section_flags: mask of all section flags */ (SEC_HAS_CONTENTS | SEC_ALLOC | SEC_LOAD | SEC_RELOC | SEC_READONLY | |