]> git.ipfire.org Git - thirdparty/iptables.git/commit
iptables: patch to correct linker flag sequence
authorYogesh Prasad <yogesh.prasad@rockwellcollins.com>
Wed, 29 Nov 2017 06:10:54 +0000 (00:10 -0600)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 4 Dec 2017 10:14:31 +0000 (11:14 +0100)
commite64db006f7c25128a7fb6f00221e40efe14c2271
treed977e10d2147717a52c58f9f92cc601f0ff59d22
parent033eac81a529d7c84dc1296c5181f8f92ff44282
iptables: patch to correct linker flag sequence

Description
This patch will correct the sequence of -pie and -shared options.
 When used together, -pie should be provided to the linker before
 -shared. If -pie is provided after -shared, the linker throws an
 error shown below as example.

-------------------------------------------------------------------------
/host/lib/gcc/powerpc-buildroot-linux-gnu/6.4.0/../../../..
/powerpc-buildroot-linux-gnu/bin/ld: BFD (GNU Binutils) 2.28.1
 assertion fail elf32-ppc.c:8923
collect2: error: ld returned 1 exit status
        + ./libxt_SYNPROXY.man
make[4]: *** [libxt_TCPOPTSTRIP.so] Error 1
        + ./libip6t_mh.man
/host/powerpc-buildroot-linux-gnu/sysroot/usr/lib/Scrt1.o:(.data+0x4):
 undefined reference to `main'
/host/lib/gcc/powerpc-buildroot-linux-gnu      + ./libxt_TCPMSS.man
/6.4.0/../../../../powerpc-buildroot-linux-gnu/bin/ld:
 BFD (GNU Binutils) 2.28.1 assertion fail elf32-ppc.c:8923
collect2: error: ld returned 1 exit status
-------------------------------------------------------------------------

Signed-off-by: Yogesh Prasad <yogesh.prasad@rockwellcollins.com>
Signed-off-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
extensions/GNUmakefile.in