From a14a5de357808faa8a25d1eff69454a8c0dca8d8 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 27 Oct 2006 03:22:09 +0000 Subject: bfd/ * section.c (SEC_KEEP): Update comment. * bfd-in2.h: Regenerate. * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections. * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections. * stabs.c (_bfd_discard_section_stabs): Likewise. (_bfd_link_section_stabs): Likewise. Simplify abs_section check. ld/ * ldlang.c (lang_map): Don't say SEC_LINKER_CREATED and SEC_KEEP sections have been discarded. (lang_do_version_exports_section): Set SEC_KEEP on export section. * emultempl/elf32.em (before_allocation): Set SEC_KEEP on warning sections. --- bfd/section.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bfd/section.c') diff --git a/bfd/section.c b/bfd/section.c index 2b5f7f8..5a100be 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -294,7 +294,9 @@ CODE_FRAGMENT . else up the line will take care of it later. *} .#define SEC_LINKER_CREATED 0x200000 . -. {* This section should not be subject to garbage collection. *} +. {* This section should not be subject to garbage collection. +. Also set to inform the linker that this section should not be +. listed in the link map as discarded. *} .#define SEC_KEEP 0x400000 . . {* This section contains "short" data, and should be placed -- cgit v1.1