Closed
Bug 932737
Opened 11 years ago
Closed 11 years ago
Change elfhack such that it doesn't require two injection objects
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla28
People
(Reporter: glandium, Assigned: glandium)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file)
9.63 KB,
patch
|
froydnj
:
review+
|
Details | Diff | Splinter Review |
The hidden goal is to get rid of this:
http://hg.mozilla.org/mozilla-central/file/829d7bef8b0a/build/unix/elfhack/inject/Makefile.in#l36
Assignee | ||
Comment 1•11 years ago
|
||
The idea here is to have only one injection object, containing both functions, and choosing between functions when we were choosing between files. This changes how the linkage is done, more specifically, this requires choosing which of the code segments are required, which is done by following relocations to defined symbols within the injected object (I hope I'm being clear, here).
https://tbpl.mozilla.org/?tree=Try&rev=567b3ea80e0e
Attachment #824584 -
Flags: review?(nfroyd)
![]() |
||
Comment 2•11 years ago
|
||
Comment on attachment 824584 [details] [diff] [review]
Change elfhack such that it doesn't require two injection objects
Review of attachment 824584 [details] [diff] [review]:
-----------------------------------------------------------------
::: build/unix/elfhack/elfhack.cpp
@@ +134,5 @@
> + entry_point = sym->value.getValue();
> + code.push_back(sym->value.getSection());
> +
> + // Get all relevant sections from the injected code object.
> + find_code(code[0]);
Possible small refactoring:
void add_code_section(ElfSection *section)
{
if (section) {
code.push_back(section);
find_code(code.back());
}
}
then you can call that here...
@@ +226,5 @@
> + }
> + if (section) {
> + code.push_back(section);
> + find_code(code.back());
> + }
...and here.
Attachment #824584 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Updated•11 years ago
|
Whiteboard: [qa-]
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
•