diff options
author | Jose E. Marchesi <jose.marchesi@oracle.com> | 2015-10-05 17:36:30 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-10-06 23:40:19 +0200 |
commit | 133509fa406e0e8d4d0f0632e2ee8c5e32dcb010 (patch) | |
tree | fd35007eb121d163d77052cb1bf69c79a0ef50c4 /libebl | |
parent | 22843755fa0b6870162660105c6fbbd1ba078390 (diff) | |
download | elfutils-133509fa406e0e8d4d0f0632e2ee8c5e32dcb010.tar.gz |
Use -fPIC instead of -fpic when generating PIC code.
This avoids relocation overflows in sparc/sparc64 targets while
linking, where the reachable data using -fpic is only 4kb.
Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
Diffstat (limited to 'libebl')
-rw-r--r-- | libebl/ChangeLog | 5 | ||||
-rw-r--r-- | libebl/Makefile.am | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libebl/ChangeLog b/libebl/ChangeLog index 4ea6d498..d040c08f 100644 --- a/libebl/ChangeLog +++ b/libebl/ChangeLog @@ -1,3 +1,8 @@ +2015-09-24 Jose E. Marchesi <jose.marchesi@oracle.com> + + * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid + relocation overflows in some platforms. + 2015-09-22 Mark Wielaard <mjw@redhat.com> * *.c: Remove old-style function definitions. diff --git a/libebl/Makefile.am b/libebl/Makefile.am index ec4477b7..6b41a3e1 100644 --- a/libebl/Makefile.am +++ b/libebl/Makefile.am @@ -28,7 +28,7 @@ ## not, see <http://www.gnu.org/licenses/>. ## include $(top_srcdir)/config/eu.am -AM_CFLAGS += -fpic +AM_CFLAGS += -fPIC AM_CPPFLAGS += -I$(srcdir)/../libelf -I$(srcdir)/../libdw -I$(srcdir)/../libasm VERSION = 1 LIBEBL_SUBDIR = @LIBEBL_SUBDIR@ |