Don't strip section defining _SDA_BASE_
authorAlan Modra <amodra@gmail.com>
Tue, 24 Jun 2014 03:53:04 +0000 (13:23 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 24 Jun 2014 04:09:04 +0000 (13:39 +0930)
commit15bfcc77681f423fd872815eb140c450d69b8a60
treeca0001f421df891e6589dfb88a34fc10930f3936
parent3343ef86879b9348bb038bc7adecb665236ca4d8
Don't strip section defining _SDA_BASE_

Prior to 93d1b056 _SDA_BASE_ used to be defined in a linker script
output section.  Now _SDA_BASE_ is defined in an input section that is
subject to being stripped.  If the section is stripped we don't output
the symbol, which results in --emit-relocs trying to emit relocs with
dangling references to _SDA_BASE_.

* elf32-ppc.c (ppc_elf_size_dynamic_sections): Arrange to keep
.sdata/.sdata2 when _SDA_BASE_/_SDA2_BASE_ should be output
for --emit-relocs.
bfd/ChangeLog
bfd/elf32-ppc.c
This page took 0.023315 seconds and 4 git commands to generate.