From: Jose E. Marchesi Date: Mon, 5 Oct 2015 15:36:30 +0000 (+0200) Subject: Use -fPIC instead of -fpic when generating PIC code. X-Git-Tag: elfutils-0.164~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a20e20ea9f122aea86533d28a688e7bb2812aa1;p=thirdparty%2Felfutils.git 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 --- diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 0609b37d8..52cc59864 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2015-09-24 Jose E. Marchesi + + * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid + relocation overflows in some platforms. + 2015-09-29 Mark Wielaard * elf32_updatenull.c (default_ehdr): Set e_version when EV_NONE. diff --git a/libelf/Makefile.am b/libelf/Makefile.am index afcb2aa5d..1fe7e3166 100644 --- a/libelf/Makefile.am +++ b/libelf/Makefile.am @@ -29,7 +29,7 @@ ## include $(top_srcdir)/config/eu.am if BUILD_STATIC -AM_CFLAGS += -fpic +AM_CFLAGS += -fPIC endif GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include) VERSION = 1