This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [AArch64][2/2] Implement -fpic for -mcmodel=small
- From: Jiong Wang <jiong dot wang at arm dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>, gcc-patches <gcc-patches at gnu dot org>
- Date: Sat, 27 Jun 2015 11:56:02 +0100
- Subject: Re: [AArch64][2/2] Implement -fpic for -mcmodel=small
- Authentication-results: sourceware.org; auth=none
- References: <n99mw0zwmz7 dot fsf at arm dot com> <CAFqB+PwwScGMZdnHK3_xmkV4LCVqK_=WkhP3Nq_wR9cz55pqYA at mail dot gmail dot com> <n99h9py1sep dot fsf at arm dot com> <CAFqB+PxAdgcFJO34d7PQqgjGhUOcVHxwwqKi7D9OZAUNZQYtrA at mail dot gmail dot com> <n99fv5e24uc dot fsf at arm dot com> <n99egky24n9 dot fsf at arm dot com> <m2k2upk1tv dot fsf at linux-m68k dot org>
Andreas Schwab writes:
> spawn -ignore SIGHUP /opt/gcc/gcc-20150627/Build/gcc/xgcc -B/opt/gcc/gcc-20150627/Build/gcc/ -fno-diagnostics-show-caret -fdiagnostics-color=never -O0 -w -fpie -c -o pr65593.o /opt/gcc/gcc-20150627/gcc/testsuite/gcc.c-torture/compile/pr65593.c
> /tmp/cc0Pymaf.s: Assembler messages:
> /tmp/cc0Pymaf.s:11: Error: unknown relocation modifier at operand 2 -- `ldr x0,[x0,#:gotpage_lo15:a]'
> /tmp/cc0Pymaf.s:19: Error: unknown relocation modifier at operand 2 --
> `ldr x2,[x0,#:gotpage_lo15:bar]'
Andreas,
The binutils patch has been upstreamed already. Please checkout the
latest binutils code.
commit 99ad26cb0d4f9152dbe5ed03b74020cc52d84d94
Author: Jiong Wang <jiong.wang@arm.com>
Date: Mon Jun 1 10:26:00 2015 +0100
[AArch64] BFD Support BFD_RELOC_AARCH64_LD64_GOTPAGE_LO15
Thanks.
--
Regards,
Jiong