- Added read8/read16/write8/write16 functions - Simplify shellcode a little bit more - Didn't init chain before using it for setuid check
22 lines
483 B
Makefile
22 lines
483 B
Makefile
TARGET_VERSIONS = 800 850 900 903 950
|
|
|
|
CC = gcc
|
|
OBJCOPY = objcopy
|
|
CFLAGS = -O3 -std=gnu11 -Wno-int-conversion -masm=intel -nostartfiles -fcf-protection=none -Tscript.ld
|
|
|
|
.PHONY: all
|
|
ALL_SOURCES = $(TARGET_VERSIONS:%=%.c)
|
|
ALL_OBJECTS = $(TARGET_VERSIONS:%=%.o)
|
|
ALL_BINS = $(TARGET_VERSIONS:%=%.bin)
|
|
|
|
all: $(ALL_BINS)
|
|
|
|
%.bin: %.o
|
|
$(CC) $< -o $*.elf $(CFLAGS)
|
|
$(OBJCOPY) -O binary --only-section=.text $*.elf $@
|
|
-rm -f $*.elf
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
-rm -f $(ALL_OBJECTS) $(ALL_BINS)
|