* section.c (SEC_LINK_ONCE): Define.
authorIan Lance Taylor <ian@airs.com>
Fri, 29 Mar 1996 21:33:59 +0000 (21:33 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 29 Mar 1996 21:33:59 +0000 (21:33 +0000)
commit5a28331f6dc965462a5380c381283b26edd283ca
treee63ec7fdb09e3dd1844229799eb0180d5d54e9fa
parentc31418c180236eb1aae59e3e415ab7578efb4d73
* section.c (SEC_LINK_ONCE): Define.
(SEC_LINK_DUPLICATES): Define.
(SEC_LINK_DUPLICATES_DISCARD): Define.
(SEC_LINK_DUPLICATES_ONE_ONLY): Define.
(SEC_LINK_DUPLICATES_SAME_SIZE): Define.
(SEC_LINK_DUPLICATES_SAME_CONTENTS): Define.
* bfd-in2.h: Rebuild.
* coffcode.h (sec_to_styp_flags): If COFF_WITH_PE, turn
SEC_LINK_ONCE into IMAGE_SCN_LNK_COMDAT.
(styp_to_sec_flags): If COFF_WITH_PE, turn IMAGE_SCN_LNK_REMOVE
into SEC_EXCLUDE.  If IMAGE_SCN_LNK_COMDAT is set, set
SEC_LINK_ONCE, and look through the symbol table for the setting
for SEC_LINK_DUPLICATES.
(coff_write_object_contents): If COFF_WITH_PE, if SEC_LINK_ONCE is
set for a section, find the section symbol in the symbol table,
and set the aux entry based on SEC_LINK_DUPLICATES.
* coffgen.c (coff_print_symbol): Add a space before "checksum".
* coff-arm.c (armcoff_big_vec): If COFF_WITH_PE is defined, add
SEC_LINK_ONCE and SEC_LINK_DUPLICATES to section_flags.
* coff-i386.c (i386coff_vec): Likewise.
* coff-ppc.c (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/coff-ppc.c
bfd/coffcode.h
bfd/coffgen.c