OSDN Git Service

Preserve the maximum alignment/size for common symbols.
authorhjl <hjl>
Sat, 8 Oct 2011 16:51:08 +0000 (16:51 +0000)
committerhjl <hjl>
Sat, 8 Oct 2011 16:51:08 +0000 (16:51 +0000)
commit79d39a4d5fc785629b45a14bc576ca3a86cc5a8a
tree13ac998dc4a6182d8d6ad435a0b54404abcac8ac
parent66eee1cfd1297db4568981373beb8e79894d1913
Preserve the maximum alignment/size for common symbols.

bfd/

2011-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13250
* elflink.c (elf_link_add_object_symbols): Preserve the maximum
alignment and size for common symbols.

ld/testsuite/

2011-10-08  H.J. Lu  <hongjiu.lu@intel.com>

PR ld/13250
* ld-elf/shared.exp (build_tests): Add tests for PR ld/13250.
(run_tests): Likewise.

* ld-elf/pr13250-1.c: New.
* ld-elf/pr13250-2.c: Likewise.
* ld-elf/pr13250-3.c: Likewise.
bfd/ChangeLog
bfd/elflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-elf/pr13250-1.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr13250-2.c [new file with mode: 0644]
ld/testsuite/ld-elf/pr13250-3.c [new file with mode: 0644]
ld/testsuite/ld-elf/shared.exp