Skip to content
Merged

Arch #52

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libc/dj64/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ LIBS = libdj64_s.a
SOURCES = thunks.c thunks_a.c thunks_c.c thunks_p.c dosobj.c
OBJECTS = $(SOURCES:.c=.o)

.INTERMEDIATE: thunk_syms.s thunk_syms.ss
#.INTERMEDIATE: thunk_syms.s thunk_syms.ss
thunk_syms.ss: thunk_syms.c asm_incsn.h
ifeq ($(CC_IS_CLANG),1)
$(XCPP) -CC -g0 $< | $(CC) -xc - -target i686-unknown-linux-gnu -S $(EXTRA_CFLAGS) -o $@
Expand Down
8 changes: 4 additions & 4 deletions src/libc/dj64/parsers/sanitize_arch.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
F_STRS=.arch\|.addrsig\|.fpu\|.eabi_attribute
ARCH=`head -n 1 $1 | grep .arch | cut -d " " -f 2`
F_STRS=\\.arch\|\\.addrsig\|\\.fpu\|\\.eabi_attribute\|\\.option\|\\.attribute
ARCH=`grep .arch $1 | cut -d " " -f 2`
if [ -z "$ARCH" ]; then
cat $1 | grep -E -v $F_STRS
grep -E -v $F_STRS $1
exit 0
fi
cat $1 | grep -E -v $F_STRS | sed 's/.align/.p2align/g'
grep -E -v $F_STRS $1 | sed -E 's/\.align/\.p2align/g'