Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- OUTPUT_FORMAT("elf32-i386");
- /* We define an entry point to keep the linker quiet. This entry point
- * has no meaning with a bootloader in the binary image we will eventually
- * generate. Bootloader will start executing at whatever is at 0x07c00 */
- ENTRY(start16);
- SECTIONS
- {
- . = 0x7C00;
- .text : {
- *(.text);
- }
- /* Place the data after the code */
- .data : SUBALIGN(2) {
- *(.data);
- *(.rodata*);
- }
- /* Place the boot signature at LMA 0x7DFE */
- .sig 0x7DFE : {
- SHORT(0xaa55);
- }
- /* Remove sections that won't be relevant to us */
- /DISCARD/ : {
- *(.eh_frame);
- *(.comment);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement