Date: Fri, 03 Feb 2017 15:06:01 +0000 From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 215974] [PATCH] audio/liba52: armv6 build requires -fPIC Message-ID: <bug-215974-12827-XZJkIJh4Ku@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-215974-12827@https.bugs.freebsd.org/bugzilla/> References: <bug-215974-12827@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215974 --- Comment #2 from Michal Meloun <mmel@FreeBSD.org> --- Yes, it's still needed. By ARM EABI, shared library must be compiled with -fPIC. (In short, standard ARM object file may contain relocations which cannot be resolved by runtime linker, like R_ARM_MOVW_*, R_ARM_MOVT_*.) The port build fails if you have specified any 'higher' CPU type.=20 With -mcpu=3Dcortex-a15, the build fails with: (and I'm sorry, I did not realize that -mcpu is necessary for the exhibitio= n of this problem)=20 /bin/sh ../libtool --mode=3Dlink cc -pipe -munaligned-access -mcpu=3Dcort= ex-a15 -fno-builtin-sin -fno-builtin-cos -fno-strict-aliasing -O -pipe -O2 -munaligned-access -fomit-frame-pointer -prefer-non-pic -o liba52.la -rpath /usr/local/lib -no-undefined bitstream.lo imdct.lo bit_allocate.lo parse.lo downmix.lo -lm rm -fr .libs/liba52.la .libs/liba52.* .libs/liba52.* cc -shared bitstream.lo imdct.lo bit_allocate.lo parse.lo downmix.lo=20 -lm -Wl,-soname -Wl,liba52.so.0 -o .libs/liba52.so.0.0.0 /usr/bin/ld: imdct.lo(.text+0x90c):=20 unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `__stderrp@@FBSD_1.0' /usr/bin/ld: final link failed: Nonrepresentable section on output --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-215974-12827-XZJkIJh4Ku>
