]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Use -fPIC instead of -fpic when generating PIC code.
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 5 Oct 2015 15:36:30 +0000 (17:36 +0200)
committerMark Wielaard <mjw@redhat.com>
Tue, 6 Oct 2015 21:54:34 +0000 (23:54 +0200)
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>
libelf/ChangeLog
libelf/Makefile.am

index 0609b37d8f4667d98a3eb4942944c4c579ebf9b3..52cc5986456a2dfb2430e9326a918d41753d6dc7 100644 (file)
@@ -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-29  Mark Wielaard  <mjw@redhat.com>
 
        * elf32_updatenull.c (default_ehdr): Set e_version when EV_NONE.
index afcb2aa5d5fa88fbbd8303b8a6d6ad785b276e43..1fe7e31663c902bfac6ac340aa9d0eddb50f57d9 100644 (file)
@@ -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