diff options
author | Cary Coutant <ccoutant@gmail.com> | 2016-12-19 10:37:23 -0800 |
---|---|---|
committer | Cary Coutant <ccoutant@gmail.com> | 2016-12-19 10:37:34 -0800 |
commit | 89ede9f53b74f84febcd1c2a6db8b03f390b62ec (patch) | |
tree | 3306b0e138f370414528b2d9091e99503e4b5e81 /gold/arm.cc | |
parent | 16e69324ec7fbe4ea12f2a0a069ad207ac8e3f97 (diff) | |
download | gdb-89ede9f53b74f84febcd1c2a6db8b03f390b62ec.zip gdb-89ede9f53b74f84febcd1c2a6db8b03f390b62ec.tar.gz gdb-89ede9f53b74f84febcd1c2a6db8b03f390b62ec.tar.bz2 |
Fix forced allocation of common (-d) during -r links.
If the .bss section has other data in it besides common allocations,
gold was subtracting the wrong section start address from the symbol
value.
gold/
PR gold/20976
* symtab.cc (Symbol_table::sized_write_globals): Use address of
output section, not input section.
* testsuite/Makefile.am (pr20976): New test case.
* testsuite/Makefile.in: Regenerate.
* testsuite/pr20976.c: New source file.
Diffstat (limited to 'gold/arm.cc')
0 files changed, 0 insertions, 0 deletions