diff options
| author | Jose E. Marchesi <[email protected]> | 2015-10-05 17:36:30 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-10-06 23:54:34 +0200 |
| commit | 6a20e20ea9f122aea86533d28a688e7bb2812aa1 (patch) | |
| tree | 1037509afe69b6705d84c7761c95ea1cd2a9435d /libelf | |
| parent | 133509fa406e0e8d4d0f0632e2ee8c5e32dcb010 (diff) | |
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 <[email protected]>
Diffstat (limited to 'libelf')
| -rw-r--r-- | libelf/ChangeLog | 5 | ||||
| -rw-r--r-- | libelf/Makefile.am | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libelf/ChangeLog b/libelf/ChangeLog index 0609b37d..52cc5986 100644 --- a/libelf/ChangeLog +++ b/libelf/ChangeLog @@ -1,3 +1,8 @@ +2015-09-24 Jose E. Marchesi <[email protected]> + + * Makefile.am (AM_CFLAGS): Use -fPIC instead of -fpic to avoid + relocation overflows in some platforms. + 2015-09-29 Mark Wielaard <[email protected]> * elf32_updatenull.c (default_ehdr): Set e_version when EV_NONE. diff --git a/libelf/Makefile.am b/libelf/Makefile.am index afcb2aa5..1fe7e316 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 |
