aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHavard Skinnemoen <hskinnemoen@google.com>2020-06-24 23:34:27 -0700
committerHavard Skinnemoen <hskinnemoen@google.com>2020-06-24 23:34:27 -0700
commit888a61bd085d8b031c1b05b22eae51fae1004aba (patch)
tree7504884b7213eb5bce14518fbdc44f76a84e9ab2
parenteb9a1c8a4602386193e003d113af919f7d2514ae (diff)
downloadvbootrom-888a61bd085d8b031c1b05b22eae51fae1004aba.zip
vbootrom-888a61bd085d8b031c1b05b22eae51fae1004aba.tar.gz
vbootrom-888a61bd085d8b031c1b05b22eae51fae1004aba.tar.bz2
Fix build with gcc-9 arm-linux-gnueabi toolchain
Linux toolchains link dynamically by default, so pass -static. gcc also adds a .note.gnu.build-id to the beginning of the file, which messes up our reset vector when converting to a raw binary file. Passing --build-id=none to the linker gets rid of it. Change-Id: If64eb0fe7298480d5a9c04730088d74b32bcb082
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b7f705c..3b2b2f3 100644
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ OBJCOPY = $(CROSS_COMPILE)objcopy
CFLAGS = -Os -g -mcpu=cortex-a9
ASFLAGS = $(CFLAGS) -Wa,-mcpu=cortex-a9+mp
LDSCRIPT = bootrom.ld
-LDFLAGS = -nostdlib -T $(LDSCRIPT)
+LDFLAGS = -Wl,--build-id=none -static -nostdlib -T $(LDSCRIPT)
OBJS := start.o image.o