on both archs shared objects are build with:
-O2 -ggdb -fvisibility-inlines-hidden -fPIC -DPIC
linking fails with an error:
/usr/bin/ld: .libs/IexBaseExc.o: relocation R_X86_64_PC32 against
`_ZNSsD1Ev@@GLIBCXX_3.4' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
without -fvisiblity-inlines-hidden everything is ok on all archs.
is this a gcc or binutils bug?
# gcc-4.0.0 (+fixes for PRs 20973,21173)
Created attachment 8818 [details]
Created attachment 8819 [details]
Known gcc bug. Check out my patch in bug 19664:
You may need to fix libstdc++ header files also.
*** This bug has been marked as a duplicate of 19664 ***
(In reply to comment #3)
> Known gcc bug. Check out my patch in bug 19664:
> You may need to fix libstdc++ header files also.
in PR19664 i see discussion about the libstdc++ headers
but don't see any patch.
Assuming that the intertwined compiler issues get fixed, the libstdc++ patch
should be trivial, I'm attaching to 19664 an old draft that maybe has now some
hunks wrong about copyright dates (if you can rework those and update it, would