Closed
Bug 635966
Opened 14 years ago
Closed 14 years ago
elfhack fails with llvm LTO
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla2.0b12
People
(Reporter: espindola, Assigned: glandium)
Details
Attachments
(3 files, 1 obsolete file)
26.79 KB,
application/x-object
|
Details | |
7.33 KB,
application/octet-stream
|
Details | |
1.13 KB,
patch
|
khuey
:
review+
shaver
:
approval2.0+
|
Details | Diff | Splinter Review |
A build with both LTO and elfhack fails at
/home/espindola/tmpfs/objdir-lto-clang/build/unix/elfhack/elfhack -b test.so
test.so: No gain. Aborting
Reporter | ||
Comment 1•14 years ago
|
||
Assignee | ||
Comment 2•14 years ago
|
||
Turns out it's the same problem as the other bug
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Assignee | ||
Comment 3•14 years ago
|
||
I have to retract, it looks like it's different. If I remove the relro section, it still says No gain.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Assignee | ||
Comment 4•14 years ago
|
||
Ah, this is an interesting case where test.so is too optimized and doesn't exhibit the patterns that are expected to show up from the source... In the present case, there are no relocations...
Assignee | ||
Updated•14 years ago
|
Assignee: nobody → mh+mozilla
Reporter | ||
Comment 5•14 years ago
|
||
Assignee | ||
Comment 6•14 years ago
|
||
There are two different things mixed in this patch, but they are two one-liners:
- the rule to build the dummy binary works for gcc but not for clang because of missing flags
- the test library is over-optimized by clang/gold, and ends up not containing most of the code from test.c, making the testcase not contain what we expect it to. Forcing to build at the lowest optimization level avoids surprises.
Attachment #514296 -
Flags: review?(khuey)
Assignee | ||
Updated•14 years ago
|
Attachment #514295 -
Attachment is obsolete: true
Attachment #514296 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 7•14 years ago
|
||
Comment on attachment 514296 [details] [diff] [review]
Avoid elfhack failure with llvm
See comment 6. No risk.
Attachment #514296 -
Flags: approval2.0?
Comment 8•14 years ago
|
||
Comment on attachment 514296 [details] [diff] [review]
Avoid elfhack failure with llvm
if this causes so much as a blip on the tinderbox radar, it comes out until after 4.
Attachment #514296 -
Flags: approval2.0? → approval2.0+
Assignee | ||
Comment 9•14 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 14 years ago → 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla2.0b12
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•