diff options
author | Alan Modra <amodra@gmail.com> | 2022-12-06 15:08:31 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-12-06 15:08:31 +1030 |
commit | da16cc96f3f29e8e3eacf25c5ad56ff15974c8dc (patch) | |
tree | 1ff29d71b8356a269f9f5aee69149fdeba3ce515 /bfd/section.c | |
parent | 7b5f66a118a6e252a56c472c082a29d39ede68c6 (diff) | |
download | gdb-da16cc96f3f29e8e3eacf25c5ad56ff15974c8dc.zip gdb-da16cc96f3f29e8e3eacf25c5ad56ff15974c8dc.tar.gz gdb-da16cc96f3f29e8e3eacf25c5ad56ff15974c8dc.tar.bz2 |
Get rid of SEC_ELF_COMPRESS
This flag also isn't needed, except for some sanity checks which we
can omit.
* elf.c (elf_fake_sections): Don't set SEC_ELF_COMPRESS for
compressed debug sections, just leave sh_name as -1.
(assign_file_positions_for_non_load_sections),
(assign_file_positions_except_relocs): Decide whether a section
needs compressing and thus should not have its file offset set
by looking at sh_name.
(_bfd_elf_assign_file_positions_for_non_load): Similarly decide
which sections need compressing.
* elflink.c (bfd_elf_final_link): Don't test SEC_ELF_COMPRESS.
* merge.c (_bfd_write_merged_section): Likewise.
* section.c (SEC_ELF_COMPRESS): Don't define.
(SEC_ELF_PURECODE): Renumber.
* bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/section.c')
-rw-r--r-- | bfd/section.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/bfd/section.c b/bfd/section.c index 30ab6a7..a49778e 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -336,9 +336,8 @@ CODE_FRAGMENT . executables or shared objects. This is for COFF only. *} .#define SEC_COFF_SHARED 0x8000000 . -. {* This section should be compressed. This is for ELF linker -. internal use only. *} -.#define SEC_ELF_COMPRESS 0x8000000 +. {* Indicate that section has the purecode flag set. *} +.#define SEC_ELF_PURECODE 0x8000000 . . {* When a section with this flag is being linked, then if the size of . the input section is less than a page, it should not cross a page @@ -364,9 +363,6 @@ CODE_FRAGMENT . when memory read flag isn't set. *} .#define SEC_COFF_NOREAD 0x40000000 . -. {* Indicate that section has the purecode flag set. *} -.#define SEC_ELF_PURECODE 0x80000000 -. . {* End of section flags. *} . . {* Some internal packed boolean fields. *} |