[PATCH v2] _GCC_PICFLAG: use -fPIC for s390x targets
Mike Frysinger
vapier@gentoo.org
Mon Dec 12 23:04:00 GMT 2011
On Thursday 08 December 2011 11:48:32 Rainer Orth wrote:
> Mike Frysinger <vapier@gentoo.org> writes:
> > Building newer libiberty for s390x targets fails with relocation errors:
> > libiberty/pic/libiberty.a(hashtab.o): In function 'htab_create':
> >
> > libiberty/hashtab.c:408:(.text+0x5e4): relocation truncated to fit:
> > R_390_GOT12 against symbol 'xcalloc' defined in .text section in
> > libiberty/pic/libiberty.a(xmalloc.o)
> >
> > libiberty/pic/libiberty.a(hashtab.o): In function 'htab_try_create':
> >
> > libiberty/hashtab.c:414:(.text+0x61c): relocation truncated to fit:
> > R_390_GOT12 against symbol 'calloc@@GLIBC_2.2' defined in .text
> > section in /lib/libc.so.6
> >
> > collect2: ld returned 1 exit status
> >
> > Building with larger GOT (-fPIC rather than -fpic) fixes this.
>
> Unfortunately, you mostly ignored my review comments on the previous
> version.
not really. what you ask is way beyond scope of s390x and is up to someone
else to decide. i'm not an s390 maintainer.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20111212/089b08d3/attachment.sig>
More information about the Gcc-patches
mailing list