mirror of https://github.com/TheOfficialFloW/bd-jb
Copy all sections as strings are otherwise missing.
parent
d48b3df31c
commit
3f94ab0869
|
@ -2,7 +2,6 @@ TARGET = payload
|
|||
OBJS = start.o payload.o
|
||||
|
||||
CC = gcc
|
||||
AS = as
|
||||
OBJCOPY = objcopy
|
||||
CFLAGS = -Os -fno-stack-protector
|
||||
LDFLAGS = -T linker.x -nostdlib -nostartfiles
|
||||
|
@ -10,7 +9,7 @@ LDFLAGS = -T linker.x -nostdlib -nostartfiles
|
|||
all: $(TARGET).bin
|
||||
|
||||
%.bin: %.elf
|
||||
$(OBJCOPY) -S -j .text -j .data -j .rodata -j .bss -O binary $^ $@
|
||||
$(OBJCOPY) -S -O binary $^ $@
|
||||
|
||||
$(TARGET).elf: $(OBJS)
|
||||
$(CC) $(CFLAGS) $^ -o $@ $(LDFLAGS)
|
||||
|
|
Loading…
Reference in New Issue