diff options
| author | Jose E. Marchesi <[email protected]> | 2015-10-05 17:36:30 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-10-06 23:40:19 +0200 |
| commit | 133509fa406e0e8d4d0f0632e2ee8c5e32dcb010 (patch) | |
| tree | fd35007eb121d163d77052cb1bf69c79a0ef50c4 /lib | |
| parent | 22843755fa0b6870162660105c6fbbd1ba078390 (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 'lib')
| -rw-r--r-- | lib/ChangeLog | 5 | ||||
| -rw-r--r-- | lib/Makefile.am | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lib/ChangeLog b/lib/ChangeLog index d1bdc7bc..76b5753d 100644 --- a/lib/ChangeLog +++ b/lib/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-22 Mark Wielaard <[email protected]> * dynamicsizehash.c: Remove old-style function definitions. diff --git a/lib/Makefile.am b/lib/Makefile.am index 97f295eb..2219eaa4 100644 --- a/lib/Makefile.am +++ b/lib/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 noinst_LIBRARIES = libeu.a |
