mirror of
https://github.com/TheOfficialFloW/bd-jb
synced 2024-12-22 06:28:50 -05:00
Copy all sections as strings are otherwise missing.
This commit is contained in:
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
Block a user