From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mark E." To: ian@cygnus.com Cc: gas2@cygnus.com Subject: coff weak symbol patches Date: Tue, 06 Oct 1998 08:47:00 -0000 Message-id: <199810061547.PAA160418@out2.ibm.net> X-SW-Source: 1998/msg00237.html Hi Ian, Attached are the diffs for coff weak symbols. One problem area to note is weak undefined symbols probably don't work properly. I've sent off the form you sent and the e-mail too. Here's the changelog I came up with: Include Changes: * internal.h: Defined C_WEAKEXT. * pe.h: Redefined C_WEAKEXT to C_NT_WEAK if COFF_WITH_PE defined. BFD changes: * obj-coff.c: Added obj_coff_weak to handle the ".weak" directive. * coffcode.h (coff_slurp_symbol_table): Add case for C_WEAKEXT to handle weak symbols. Set BSF_WEAK for weak symbols. * coffgen.c (coff_write_symbol): Make sure symbol has C_WEAKEXT storage class when BSF_WEAK is set. (coff_write_alien_symbol): Same (coff_print_symbol): Show if symbol is weak when printing all symbol information. * cofflink.c (coff_link_check_ar_symbols): Include C_WEAKEXT type symbols in check. (coff_link_add_symbols): Same. Also make sure symbol remains weak when undefined. (_bfd_coff_link_input_bfd): Add C_WEAKEXT to skip test. AS change: * config/tc-i386.h: Added definition of LOCAL_LABEL for when TE_GO32 defined -- Mark E. snowball3@usa.net http://members.xoom.com/snowball3/