diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2017-05-13 13:18:13 +0300 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2017-05-13 13:18:13 +0300 |
commit | efa711b91bf3152516e77054411328f38ca18802 (patch) | |
tree | 1e79155f972d2e08046c0f163fd10d81329ff51a /debian/patches/136_bfd_pic.patch | |
parent | 3e91610f98b6546c00ce5d172be9f8d854d250bb (diff) | |
parent | f0ef3d0a5cb2410eab2b1b412e7ec7ef94fa0dc6 (diff) | |
download | binutils-efa711b91bf3152516e77054411328f38ca18802.tar.gz |
Merge tag 'debian/2.28-5'
Diffstat (limited to 'debian/patches/136_bfd_pic.patch')
-rw-r--r-- | debian/patches/136_bfd_pic.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/136_bfd_pic.patch b/debian/patches/136_bfd_pic.patch new file mode 100644 index 0000000..9ac484f --- /dev/null +++ b/debian/patches/136_bfd_pic.patch @@ -0,0 +1,29 @@ +Author: Balint Reczey <balint@balintreczey.hu> +Description: Build libbfd with -fPIC to allow linking with PIE binaries + +Index: b/bfd/Makefile.am +=================================================================== +--- a/bfd/Makefile.am ++++ b/bfd/Makefile.am +@@ -51,7 +51,7 @@ ZLIBINC = @zlibinc@ + + WARN_CFLAGS = @WARN_CFLAGS@ + NO_WERROR = @NO_WERROR@ +-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) ++AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC + AM_CPPFLAGS = -DBINDIR='"$(bindir)"' + if PLUGINS + bfdinclude_HEADERS += $(INCDIR)/plugin-api.h +Index: b/bfd/Makefile.in +=================================================================== +--- a/bfd/Makefile.in ++++ b/bfd/Makefile.in +@@ -388,7 +388,7 @@ libbfd_la_LDFLAGS = $(am__append_1) -rel + # case both are empty. + ZLIB = @zlibdir@ -lz + ZLIBINC = @zlibinc@ +-AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) ++AM_CFLAGS = $(WARN_CFLAGS) $(ZLIBINC) -fPIC + AM_CPPFLAGS = -DBINDIR='"$(bindir)"' + @PLUGINS_TRUE@LIBDL = @lt_cv_dlopen_libs@ + |