https://sourceware.org/bugzilla/show_bug.cgi?id=34489
Bug ID: 34489
Summary: [SH] ld emits relative relocations instead of handling
hidden absolute symbols
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: ld
Assignee: unassigned at sourceware dot org
Reporter: olegendo at gcc dot gnu.org
Target Milestone: ---
ld doesn't handle hidden absolute symbols properly on SH, and instead emits
relative relocations, which inherently then makes the symbol not absolute.
$ echo "PROVIDE_HIDDEN(abssym = 0x8c000000);" >> abssym.txt
$ echo ".long abssym" >> abssym.s
$ sh-elf-gcc -Wl,--just-symbols=abssym.txt -Wl,-shared -nostartfiles -o
abssym.so abssym.s
$ sh-elf-readelf -r abssym.so
Offset Info Type Sym.Value Sym. Name + Addend
00000148 000000a5 R_SH_RELATIVE -74000000
--
You are receiving this mail because:
You are on the CC list for the bug.