forked from fwupd/fwupd-efi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
I finally figured out how to best achieve this without breaking GNU ld * Force code to be at known dest of 4096 * Move _start into .text * Load the _start symbol address and then minus 4096 to get the load address This should make the binary more PE32 compatible Change in ncroxon/gnu-efi#45 Signed-off-by: Callum Farmer <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ SECTIONS | |
{ | ||
.text 0 : { | ||
*(.text.head) | ||
. = 0x1000; | ||
_text = .; | ||
*(.text) | ||
*(.text.*) | ||
|