Last active
January 7, 2016 22:45
-
-
Save strangeglyph/42016c43287e5b4a6284 to your computer and use it in GitHub Desktop.
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
ENTRY(start) | |
SECTIONS { | |
. = 1M; | |
.boot : | |
{ | |
KEEP(*(.multiboot_header)) | |
} | |
.text : | |
{ | |
*(.text .text.*) | |
} | |
.rodata : { | |
*(.rodata .rodata.*) | |
} | |
.data.rel.ro : { | |
*(.data.rel.ro.local*) *(.data.rel.ro .data.rel.ro.*) | |
} | |
. = ALIGN(64K); | |
introffset_low_bits = . & 0xffff; | |
introffset_mid_bits = (. >> 16) & 0xffff; | |
introffset_high_bits = . >> 32; | |
.interrupts : | |
{ | |
KEEP(*(.interrupt_handlers .interrupt_handlers.*)) | |
} | |
} |
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
》 objdump -t build/kernel-x86_64.bin | grep "in..offset" | |
0000000000000012 g *ABS* 0000000000000000 introffset_mid_bits | |
0000000000000000 g *ABS* 0000000000000000 introffset_high_bits | |
0000000000000000 g *ABS* 0000000000000000 introffset_low_bits |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment