Closed Bug 151978 Opened 22 years ago Closed 22 years ago

Prebinding doesn't play well with mach-o xptcinvoke/xptcstubs implementation

Categories

(Core :: XPConnect, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: bryner, Assigned: bryner)

References

Details

Attachments

(1 file, 1 obsolete file)

If you build with prebinding enabled, and the prebinding is out of date, the app
fails to start.  This appears to be because some functions that are implemented
in assembly reside in the data section intead of the text section.  Making them
reside in the text section involves using an indirect call stub.  I also had to
change the manner in which the method index is passed from StubNNN to
SharedStub, since r12 will be clobbered by the indirect call.
Attached patch patch (obsolete) — Splinter Review
beard, pavlov, can you guys r/sr?
Blocks: 152130
Attached patch patch v2Splinter Review
Ok, this one is actually quite a bit less scary.  I'm using m4 to generate the
stub functions in the .s file.
Attachment #87774 - Attachment is obsolete: true
Comment on attachment 88559 [details] [diff] [review]
patch v2

r=pavlov

looks ok to me
Attachment #88559 - Flags: review+
Comment on attachment 88559 [details] [diff] [review]
patch v2

sr=beard, looks very cool
Attachment #88559 - Flags: superreview+
Checked into the trunk and CHIMERA_M1_0_BRANCH.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Patch checkin verified on trunk and CHIMERA_M1_0_BRANCH -
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: