Skip to content

Commit 49c38cb

Browse files
author
Julio Guerra
committed
always link malloc
Using malloc in GDB is always funny/usefull. For example, with the command `call printf("hello")`, GDB automatically uses malloc to allocate a string and copy it into the target's RAM.
1 parent ca28a66 commit 49c38cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cflags/raytracer.elf := -Og
1111

1212
# Common Flags
1313
cflags := -specs=sdk/Alpha.specs -mfloat-abi=hard -mfpu=vfp -march=armv6zk -mtune=arm1176jzf-s -g3 -ggdb
14-
ldflags := -Wl,-Tsdk/link.ld -Lsdk
14+
ldflags := -Wl,-Tsdk/link.ld -Lsdk -Wl,-umalloc
1515

1616
.PHONY: all
1717
all: $(elfs)

0 commit comments

Comments
 (0)