Alan Modra 93d1b056cb Rewrite ppc32 backend .sdata and .sdata2 handling
1) _SDA_BASE_ and _SDA2_BASE_ and defined automatically, in a similar
   manner to the way _GLOBAL_OFFSET_TABLE_ is handled.  It's a little
   more complicated to remove the symbols because _SDA_BASE_ needs to
   be there if either .sdata or .sbss is present, and similarly for
   _SDA2_BASE.
2) The linker created .sdata and .sdata2 sections used for
   R_PPC_EMB_SDAI16 and R_PPC_EMB_SDA2I16 pointers are created early.
   Nowadays we strip unneeded sections from the output, so it isn't
   necessary to delay creating the sections.
3) The output section for targets of various SDA relocs is now checked
   as per the ABI(s).  We previously allowed .sdata.foo and similar,
   most likely because at some stage we were checking input sections.

Also, the patch fixes a long-standing bug in size_input_sections
that affects the values of symbols defined in stripped input
sections.

	PR 16952
bfd/
	* elf32-ppc.c (ppc_elf_create_linker_section): Move earlier.
	Remove redundant setting of htab->elf.dynobj.  Don't align.
	Define .sdata symbols using _bfd_elf_define_linkage_sym.
	(ppc_elf_create_glink): Call ppc_elf_create_linker_section.
	(create_sdata_sym): Delete.
	(elf_allocate_pointer_linker_section): Rename from
	elf_create_pointer_linker_section.  Align section.
	(ppc_elf_check_relocs): Don't call ppc_elf_creat_linker_section
	directly here, or create_sdata_sym.  Set ref_regular on _SDA_BASE_
	and _SDA2_BASE_.
	(ppc_elf_size_dynamic_sections): Remove ATTRIBUTE_UNUSED on param.
	Remove unnecessary tests on _SDA_BASE_ sym.
	(maybe_strip_sdasym, ppc_elf_maybe_strip_sdata_syms): New functions.
	(ppc_elf_relocate_section): Tighten SDA reloc symbol section checks.
	* elf32-ppc.h (ppc_elf_set_sdata_syms): Delete.
	(ppc_elf_maybe_strip_sdata_syms): Declare.
ld/
	* emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
	* emultempl/ppc32elf.em (ppc_before_allocation): Call
	ppc_elf_maybe_strip_sdata_syms.
	* ldlang.c (size_input_section): Correct output_offset value
	for excluded input sections.
2014-05-20 13:13:23 +09:30
..
2014-04-09 15:32:14 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2012-11-08 03:03:26 +00:00
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-07 11:47:29 +01:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-07 11:47:29 +01:00
2014-05-02 20:09:40 +09:30
2014-05-07 11:47:29 +01:00
2014-04-03 12:08:01 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2012-12-10 12:48:03 +00:00
2014-03-05 22:16:15 +10:30
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2012-12-10 12:48:03 +00:00
2013-02-04 05:10:44 +00:00
2012-12-10 12:48:03 +00:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:11:49 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-07 11:47:29 +01:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-04-03 11:34:49 +10:30
2014-03-05 22:16:15 +10:30
2014-04-17 13:10:35 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-07 11:47:29 +01:00
2014-05-06 20:13:03 +01:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-04-18 14:32:43 +02:00
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-13 09:33:07 +01:00
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-04-23 14:29:12 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:11:49 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-05-02 20:09:40 +09:30
2014-05-20 09:30:38 +09:30
2014-05-02 20:09:40 +09:30
2014-05-02 20:09:40 +09:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30
2014-03-05 22:16:15 +10:30

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

BFD is an object file library.  It permits applications to use the
same routines to process object files regardless of their format.

BFD is used by the GNU debugger, assembler, linker, and the binary
utilities.

The documentation on using BFD is scanty and may be occasionally
incorrect.  Pointers to documentation problems, or an entirely
rewritten manual, would be appreciated.

There is some BFD internals documentation in doc/bfdint.texi which may
help programmers who want to modify BFD.

BFD is normally built as part of another package.  See the build
instructions for that package, probably in a README file in the
appropriate directory.

BFD supports the following configure options:

  --target=TARGET
	The default target for which to build the library.  TARGET is
	a configuration target triplet, such as sparc-sun-solaris.
  --enable-targets=TARGET,TARGET,TARGET...
	Additional targets the library should support.  To include
	support for all known targets, use --enable-targets=all.
  --enable-64-bit-bfd
	Include support for 64 bit targets.  This is automatically
	turned on if you explicitly request a 64 bit target, but not
	for --enable-targets=all.  This requires a compiler with a 64
	bit integer type, such as gcc.
  --enable-shared
	Build BFD as a shared library.
  --with-mmap
	Use mmap when accessing files.  This is faster on some hosts,
	but slower on others.  It may not work on all hosts.

Report bugs with BFD to bug-binutils@gnu.org.

Patches are encouraged.  When sending patches, always send the output
of diff -u or diff -c from the original file to the new file.  Do not
send default diff output.  Do not make the diff from the new file to
the original file.  Remember that any patch must not break other
systems.  Remember that BFD must support cross compilation from any
host to any target, so patches which use ``#ifdef HOST'' are not
acceptable.  Please also read the ``Reporting Bugs'' section of the
gcc manual.

Bug reports without patches will be remembered, but they may never get
fixed until somebody volunteers to fix them.

Copyright (C) 2012-2014 Free Software Foundation, Inc.

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.