aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-06-29 14:05:21 +0000
committerAlan Modra <amodra@gmail.com>2005-06-29 14:05:21 +0000
commit39c2f51bd9f82438706973c4b92597a945d9c4df (patch)
tree44152730391ea82957bcbc22e60bce18565e60f4 /bfd/bfd-in2.h
parente8aaee2ad47c086c1c64639df152489eb283b342 (diff)
downloadgdb-39c2f51bd9f82438706973c4b92597a945d9c4df.zip
gdb-39c2f51bd9f82438706973c4b92597a945d9c4df.tar.gz
gdb-39c2f51bd9f82438706973c4b92597a945d9c4df.tar.bz2
* elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
.eh_frame specially.. (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame. Don't recheck sections we have already marked. (elf_gc_sweep): Keep non-code sections referenced from .eh_frame. * section.c (struct bfd_section): Add gc_mark_from_eh. (STD_SECTION): Adjust. * ecoff.c (bfd_debug_section): Adjust. * bfd-in2.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index a1ca958..7d16049 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1262,8 +1262,9 @@ typedef struct bfd_section
output sections that have an input section. */
unsigned int linker_has_input : 1;
- /* A mark flag used by some linker backends for garbage collection. */
+ /* Mark flags used by some linker backends for garbage collection. */
unsigned int gc_mark : 1;
+ unsigned int gc_mark_from_eh : 1;
/* The following flags are used by the ELF linker. */