Closed
Bug 610978
Opened 14 years ago
Closed 14 years ago
text relocation in libxul with STL
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 604307
People
(Reporter: benjamin, Assigned: glandium)
Details
bsmedberg $ eu-findtextrel libxul.so | c++filt | sort -u
either the file containing the function 'std::vector<mozilla::layers::EditReply, std::allocator<mozilla::layers::EditReply> >::push_back(mozilla::layers::EditReply const&)' or the file containing the function 'std::_Rb_tree<TBasicType, std::pair<TBasicType const, TPrecision>, std::_Select1st<std::pair<TBasicType const, TPrecision> >, std::less<TBasicType>, std::allocator<std::pair<TBasicType const, TPrecision> > >::_M_copy(std::_Rb_tree_node<std::pair<TBasicType const, TPrecision> > const*, std::_Rb_tree_node<std::pair<TBasicType const, TPrecision> >*)' is not compiled with -fpic/-fPIC
This *might* be related to bug 604307, although it doesn't look the same. Right now I suspect a compiler bug in the STL, but it's possible that we missed something in system-headers.
Assignee | ||
Comment 1•14 years ago
|
||
For the record, it only happens on x86, not x86-64.
OS: Windows 7 → Linux
Assignee | ||
Comment 2•14 years ago
|
||
I don't know how eu-findtextrel ends up being so wrong, but it actually *is* bug 604307:
$ readelf -r build-xulrunner/dist/bin/libxul.so | head -11
Relocation section '.rel.dyn' at offset 0x47194 contains 219653 entries:
Offset Info Type Sym.Value Sym. Name
00d3d98f 00000008 R_386_RELATIVE
00d3d99a 00000008 R_386_RELATIVE
00d3d9a6 00000008 R_386_RELATIVE
00d3d9b1 00000008 R_386_RELATIVE
00d3d9de 00000008 R_386_RELATIVE
00d3d9e9 00000008 R_386_RELATIVE
00d3d9f4 00000008 R_386_RELATIVE
00f32190 00000008 R_386_RELATIVE
$ objdump -t build-xulrunner/dist/bin/libxul.so |sort | grep ^00d3d9
00d3d968 l F .text 00000000 .hidden FastConvertYUVToRGB32Row
eu-findtextrel being off may be related to FastConvertYUVToRGB32Row being actually 0 length, and the actual asm code being under no symbol at all.
For the record, on my build:
$ eu-findtextrel libxul.so
either the file containing the function '_ZNSt6vectorIN7mozilla6layers9EditReplyESaIS2_EE9push_backEOS2_' or the file containing the function '_ZNSbIcSt11char_traitsIcE14pool_allocatorIcEED1Ev' is not compiled with -fpic/-fPIC
$ objdump -t build-xulrunner/dist/bin/libxul.so | grep _ZNSt6vectorIN7mozilla6layers9EditReplyESaIS2_EE9push_backEOS2_
00d3d268 w F .text 00000046 _ZNSt6vectorIN7mozilla6layers9EditReplyESaIS2_EE9push_backEOS2_
$ objdump -t build-xulrunner/dist/bin/libxul.so | grep _ZNSbIcSt11char_traitsIcE14pool_allocatorIcEED1Ev
00d42814 w F .text 00000030 _ZNSbIcSt11char_traitsIcE14pool_allocatorIcEED1Ev
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•