diff options
author | Alan Modra <amodra@gmail.com> | 2015-11-19 16:59:36 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-11-19 17:01:04 +1030 |
commit | 32d849b35dead5af58e47bc20c04cf4f5c8625ef (patch) | |
tree | 956b6453ea8fa43bf07b80fcf996286747a12f70 /gold/powerpc.cc | |
parent | 04830f249f8cb2c4f89e12cde9212febf50611ff (diff) | |
download | gdb-32d849b35dead5af58e47bc20c04cf4f5c8625ef.zip gdb-32d849b35dead5af58e47bc20c04cf4f5c8625ef.tar.gz gdb-32d849b35dead5af58e47bc20c04cf4f5c8625ef.tar.bz2 |
[GOLD] PowerPC TOC16 and GOT16 relocs are relative
* powerpc.cc (Target_powerpc::Scan::get_reference_flags): Correct
GOT16 and TOC16 relocs to RELATIVE_REF.
Diffstat (limited to 'gold/powerpc.cc')
-rw-r--r-- | gold/powerpc.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gold/powerpc.cc b/gold/powerpc.cc index 3a013ef..5441c52 100644 --- a/gold/powerpc.cc +++ b/gold/powerpc.cc @@ -5326,8 +5326,7 @@ Target_powerpc<size, big_endian>::Scan::get_reference_flags( case elfcpp::R_PPC64_TOC16_HA: case elfcpp::R_PPC64_TOC16_DS: case elfcpp::R_PPC64_TOC16_LO_DS: - // Absolute in GOT. - ref = Symbol::ABSOLUTE_REF; + ref = Symbol::RELATIVE_REF; break; case elfcpp::R_POWERPC_GOT_TPREL16: |