diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-05-12 21:28:01 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-05-12 21:28:01 (GMT) |
commit | 5fce21379baac06b7b9359c4b0fcb7fb3867c301 (patch) | |
tree | 19bf2943fe5a8a46bae227b8863bc9714fb3ec66 /tests/format/elf/Makefile | |
parent | 8ee7fc5db965adaa835ca87bb3d2e2d43e52fbbb (diff) |
Added the ELF strings to the preloaded instruction list.
Diffstat (limited to 'tests/format/elf/Makefile')
-rw-r--r-- | tests/format/elf/Makefile | 9 |
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 $@ |