Subject: [Boost-bugs] [Boost C++ Libraries] #5508: shared libs with PIC not correctly build on MIPS
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-04-28 05:46:59
#5508: shared libs with PIC not correctly build on MIPS
----------------------------------------------------+-----------------------
Reporter: Oliver Kowalke <oliver.kowalke@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: To Be Determined | Component: build
Version: Boost 1.47.0 | Severity: Showstopper
Keywords: MIPS PIC |
----------------------------------------------------+-----------------------
shared libraries build with bjam/boost.build on MIPS using position-
independed code do not work correctly/generating segmentation fault.
Compiling the library 'by hand' doesn't issue an error.
build libboost_fn with bjam:
bjam toolset=gcc link=shared variant=debug cxxflags="-fPIC" --with-fn
stage
build test app:
g++ -g ./test.cpp -I./ -L./stage/lib -lboost_fn -Wl,-rpath=./stage/lib
-lrt
./a.out with segementation fault at fn1.S:
'lw $t9, %call16(exit)($gp)'
build libbost_fn by hand:
g++ -fPIC -g -I./ -c -Wall fn1.S
g++ -shared -Wl,-soname,libboost_fn, -o libboost_fn fn1.o -lc
build test app:
g++ -g ./test.cpp -I./ -L./ -lboost_fn -Wl,-rpath=./ -lrt
./a.out works and returns with exit code 2.
It seams to be a bug in bjam/boost.build.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5508> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC