Closed
Bug 358559
Opened 18 years ago
Closed 18 years ago
R_386_PC32 relocations in libxul.so when building on FC6
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
(Keywords: fixed1.8.0.9, fixed1.8.1.1)
Attachments
(1 file, 1 obsolete file)
3.76 KB,
patch
|
benjamin
:
review+
dveditz
:
approval1.8.0.9+
dveditz
:
approval1.8.1.1+
|
Details | Diff | Splinter Review |
When building on Fedora Core 6 (where our system wrappers stuff works, and where the big gcc visibility bug is fixed), SELinux prevents me from starting due to the bad type of relocations in libtracemalloc.so and libxul.so. This bug covers the problem in libxul.so. I don't understand this problem yet, so if you do, feel free to take it, but I'm planning to debug it later today. The problem is a single relocation (as shown by objdump -R libxul.so): 0000de67 R_386_PC32 __cxa_pure_virtual There are plenty of other relocations for __cxa_pure_virtual of the healthier R_386_32 sort, but there's this lonely one relocation that prevents my default build from running with all the SELinux protection enabled.
Assignee | ||
Comment 1•18 years ago
|
||
For what it's worth, objdump -sdR libxul.so shows the relocation in question as being in the midst of code compiled from toolkit/xre/nsAppRunner.cpp . It's in: 0000de60 <__pure_virtual>: de60: 55 push %ebp de61: 89 e5 mov %esp,%ebp de63: 83 ec 08 sub $0x8,%esp de66: e8 fc ff ff ff call de67 <__pure_virtual+0x7> de67: R_386_PC32 __cxa_pure_virtual de6b: c9 leave de6c: c3 ret de6d: 90 nop de6e: 66 90 xchg %ax,%ax which immediately follows the definition of _ZN12nsXULAppInfo9GetVendorER19nsACString_internal (which is the last of a bunch of the nsXULAppInfo methods that are in the binary in reverse order from their order in the source). Following it are lots of things that would normally be inlined (this is a -g -O2 -fno-inline build).
Assignee | ||
Comment 2•18 years ago
|
||
Oh, this is the MOZ_ENABLE_OLD_ABI_COMPAT_WRAPPERS code.
Assignee | ||
Comment 3•18 years ago
|
||
Attachment #243936 -
Flags: review?(benjamin)
Assignee | ||
Comment 4•18 years ago
|
||
Ah, we have a system wrapper for pk11func.h but not for pk11pub.h .
Assignee | ||
Comment 5•18 years ago
|
||
Er, wrong bug.
Assignee | ||
Updated•18 years ago
|
Flags: blocking1.8.1.1?
Flags: blocking1.8.0.9?
Assignee | ||
Updated•18 years ago
|
Flags: blocking1.9?
Comment 6•18 years ago
|
||
Comment on attachment 243936 [details] [diff] [review] patch What were these symbols for? Can they be removed yet?
Attachment #243936 -
Flags: review?(benjamin) → review+
Assignee | ||
Comment 7•18 years ago
|
||
They're from bug 154206 -- and I'd sort of expect they're still needed.
Assignee | ||
Comment 8•18 years ago
|
||
And I realize I should land the same patch in xpfe/bootstrap, since this code still lives there too...
Assignee | ||
Comment 9•18 years ago
|
||
Checked in to trunk.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 10•18 years ago
|
||
This is just the previous patch doubled, and what I landed just now.
Attachment #243936 -
Attachment is obsolete: true
Attachment #243987 -
Flags: review?(benjamin)
Assignee | ||
Comment 11•18 years ago
|
||
Comment on attachment 243987 [details] [diff] [review] patch landed This is a low risk patch that will, along with the patches to bug 358558 and bug 358565: * allow Linux distros to take advantage of performance optimizations (prelinking) and security improvements (SELinux) * make it easier for developers to build on new distributions like Fedora Core 6
Attachment #243987 -
Flags: approval1.8.1.1?
Attachment #243987 -
Flags: approval1.8.0.9?
Comment 12•18 years ago
|
||
Comment on attachment 243987 [details] [diff] [review] patch landed FWIW, we could probably have used HAVE_VISIBILITY_ATTRIBUTE instead of doing -DWRAP_SYSTEM_INCLUDES.
Attachment #243987 -
Flags: review?(benjamin) → review+
Updated•18 years ago
|
Flags: blocking1.8.1.1?
Flags: blocking1.8.1.1-
Flags: blocking1.8.0.9?
Flags: blocking1.8.0.9-
Comment 13•18 years ago
|
||
Comment on attachment 243987 [details] [diff] [review] patch landed approved for 1.8/1.8.0 branches, a=dveditz for drivers
Attachment #243987 -
Flags: approval1.8.1.1?
Attachment #243987 -
Flags: approval1.8.1.1+
Attachment #243987 -
Flags: approval1.8.0.9?
Attachment #243987 -
Flags: approval1.8.0.9+
Assignee | ||
Comment 14•18 years ago
|
||
Fix checked in to MOZILLA_1_8_0_BRANCH and MOZILLA_1_8_BRANCH.
Keywords: fixed1.8.0.9,
fixed1.8.1.1
You need to log in
before you can comment on or make changes to this bug.
Description
•