old-cross-binutils/include/coff
Richard Sandiford 8602d4fea6 include/coff/
* internal.h (C_AIX_WEAKEXT): New macro.
	(C_WEAKEXT): Use the GNU definition in the generic part of the file,
	and conditionally reset it to C_AIX_WEAKEXT in the XCOFF part of
	the file.
	(CSECT_SYM_P): New macro.
	* xcoff.h (L_WEAK): Define.
	(EXTERN_SYM_P): New macro.

bfd/
	* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
	check whether a symbol has csect information.
	(coff_print_aux): Likewise.
	* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
	information for C_AIX_WEAKEXT too.
	(_bfd_xcoff_swap_aux_out): Likewise.
	(xcoff_reloc_type_br): Handle defweak symbols too.
	* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
	information for C_AIX_WEAKEXT too.
	(_bfd_xcoff64_swap_aux_out): Likewise.
	(xcoff64_reloc_type_br): Handle defweak symbols too.
	* coffgen.c (coff_print_symbol): Handle auxillary function
	information for C_AIX_WEAKEXT too.
	* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
	instead of BSF_GLOBAL if the L_WEAK flag is set.
	(xcoff_dynamic_definition_p): New function.
	(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
	defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
	always take the symbol class from the ldsym.  Use weak bfd symbol
	types for weak ldsyms.
	(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
	Fix the check for whether a definition is from a shared object.
	Allow redefinitions of weak symbols.
	(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
	(xcoff_keep_symbol_p): Likewise.
	(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
	(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
	Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
	but mark them as L_WEAK.
	(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
	instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.

gas/
	* config/tc-ppc.c (ppc_frob_symbol): Add csect information for
	C_AIX_WEAKEXT too.

ld/testsuite/
	* ld-powerpc/aix-glink-2a.s, ld-powerpc/aix-glink-2a.ex,
	ld-powerpc/aix-glink-2b.s, ld-powerpc/aix-glink-2c.s,
	ld-powerpc/aix-glink-2c.ex, ld-powerpc/aix-glink-2d.s,
	ld-powerpc/aix-glink-2-32.dd, ld-powerpc/aix-glink-2-64.dd,
	ld-powerpc/aix-weak-1a.s, ld-powerpc/aix-weak-1b.s,
	ld-powerpc/aix-weak-1-rel.hd, ld-powerpc/aix-weak-1-rel.nd,
	ld-powerpc/aix-weak-1-dso.hd, ld-powerpc/aix-weak-1-dso.nd,
	ld-powerpc/aix-weak-1-dso.dnd, ld-powerpc/aix-weak-1.ex,
	ld-powerpc/aix-weak-2a.s, ld-powerpc/aix-weak-2a.ex,
	ld-powerpc/aix-weak-2a.nd, ld-powerpc/aix-weak-2b.s,
	ld-powerpc/aix-weak-2b.nd, ld-powerpc/aix-weak-2c.s,
	ld-powerpc/aix-weak-2c.ex, ld-powerpc/aix-weak-2c.nd,
	ld-powerpc/aix-weak-2c.od, ld-powerpc/aix-weak-3a.s,
	ld-powerpc/aix-weak-3a.ex, ld-powerpc/aix-weak-3b.s,
	ld-powerpc/aix-weak-3b.ex, ld-powerpc/aix-weak-3-32.d,
	ld-powerpc/aix-weak-3-32.dd, ld-powerpc/aix-weak-3-64.d,
	ld-powerpc/aix-weak-3-64.dd: New tests.
	* ld-powerpc/aix52.exp: Run them.  Replace tmp/aix-* with
	tmp/aix64-* in 64-bit ld options.
2009-03-14 09:34:27 +00:00
..
alpha.h Add code to detect and either handle or issue an error message for binaries 2005-07-14 07:07:46 +00:00
apollo.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
arm.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
aux-coff.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
ChangeLog include/coff/ 2009-03-14 09:34:27 +00:00
ChangeLog-9103 Move entries in ChangeLog-9103 to appropriate */ChangeLog-9103. 2005-04-13 17:33:48 +00:00
ecoff.h Add code to detect and either handle or issue an error message for binaries 2005-07-14 07:07:46 +00:00
external.h Define ATTRIBUTE_PACKED and use as necessary. 2006-12-06 14:36:41 +00:00
go32exe.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
h8300.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
h8500.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
i386.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
i860.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
i960.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
ia64.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
internal.h include/coff/ 2009-03-14 09:34:27 +00:00
m68k.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
m88k.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
maxq.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
mcore.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
mips.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
mipspe.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
or32.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
pe.h include/ChangeLog 2009-03-14 03:30:26 +00:00
powerpc.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
rs6k64.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
rs6000.h Write Mimi's name in ASCII. 2007-04-27 03:37:43 +00:00
sh.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
sparc.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
sym.h 19990502 sourceware import 1999-05-03 07:29:11 +00:00
symconst.h * symconst.h (langMax): Fix typo in comment. 2004-08-13 19:17:39 +00:00
ti.h * coffcode.h (coff_write_object_contents): Always initialise 2008-12-23 10:59:56 +00:00
tic4x.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
tic30.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
tic54x.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
tic80.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
w65.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
we32k.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
x86_64.h Add x86_64-mingw64 target 2006-09-20 11:35:11 +00:00
xcoff.h include/coff/ 2009-03-14 09:34:27 +00:00
z8k.h Update the address and phone number of the FSF organization 2005-05-10 10:21:13 +00:00
z80.h Add support for the Z80 processor family 2005-10-25 17:40:19 +00:00