mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-11-23 01:12:18 -05:00
Restore -Os flag and add other sections to linker file.
This commit is contained in:
parent
f6391aeafd
commit
548af2ec1a
@ -3,7 +3,7 @@ OBJS = start.o payload.o
|
|||||||
|
|
||||||
CC = gcc
|
CC = gcc
|
||||||
OBJCOPY = objcopy
|
OBJCOPY = objcopy
|
||||||
CFLAGS = -isystem freebsd-headers/include -fno-stack-protector
|
CFLAGS = -isystem freebsd-headers/include -Os -fno-stack-protector
|
||||||
LDFLAGS = -T linker.x -nostdlib -nostartfiles
|
LDFLAGS = -T linker.x -nostdlib -nostartfiles
|
||||||
|
|
||||||
all: $(TARGET).bin
|
all: $(TARGET).bin
|
||||||
|
@ -6,7 +6,9 @@ ENTRY(_start)
|
|||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
. = 0x916300000;
|
. = 0x916300000;
|
||||||
.text : { *(.text) }
|
.text : { *(.text .text.*) }
|
||||||
. = 0x916304000;
|
. = 0x916304000;
|
||||||
.data : { *(.data) }
|
.rodata : { *(.rodata .rodata.*) }
|
||||||
|
.data : { *(.data .data.*) }
|
||||||
|
.bss : { *(.bss .bss.*) }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user