summaryrefslogtreecommitdiff
path: root/tests/format/elf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tests/format/elf/Makefile')
-rw-r--r--tests/format/elf/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/format/elf/Makefile b/tests/format/elf/Makefile
index 8695bb1..0511308 100644
--- a/tests/format/elf/Makefile
+++ b/tests/format/elf/Makefile
@@ -1,5 +1,5 @@
-EXECUTABLES=oob_section_name overlapping_areas
+EXECUTABLES=oob_section_name overlapping_areas strings
all: $(EXECUTABLES)
@@ -9,6 +9,13 @@ oob_section_name: oob_section_name.o
overlapping_areas: overlapping_areas.o
$(ARM_CROSS)objcopy $< -O binary $@
+strings: strings.asm
+ grep .global strings.asm | cut -d ' ' -f 2 > keep.lst
+ $(ARM_CROSS)as -o strings.o strings.asm
+ $(ARM_CROSS)ld -s --retain-symbols-file=keep.lst -o strings strings.o
+ rm -f keep.lst
+
+
%.o: %.asm
$(ARM_CROSS)as -c $< -o $@