-
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.
elf: fix arithmetic overflow with invalid program headers (#320)
See m4b/goblin#306
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
PHDRS | ||
{ | ||
text PT_LOAD ; | ||
rodata PT_LOAD ; | ||
data PT_LOAD ; | ||
dynamic PT_DYNAMIC ; | ||
} | ||
|
||
SECTIONS | ||
{ | ||
. = SIZEOF_HEADERS; | ||
.text 0xFFFFFFFFFFFFFFF0 : { *(.text*) } :text | ||
.rodata : { *(.rodata*) } :rodata | ||
.data.rel.ro : { *(.data.rel.ro*) } :rodata | ||
.dynamic : { *(.dynamic) } :dynamic | ||
.dynsym : { *(.dynsym) } :data | ||
.dynstr : { *(.dynstr) } :data | ||
.rel.dyn : { *(.rel.dyn) } :data | ||
/DISCARD/ : { | ||
*(.eh_frame*) | ||
*(.gnu.hash*) | ||
*(.hash*) | ||
} | ||
} |
Binary file not shown.