diff options
author | Havard Skinnemoen <hskinnemoen@google.com> | 2020-06-24 23:34:27 -0700 |
---|---|---|
committer | Havard Skinnemoen <hskinnemoen@google.com> | 2020-06-24 23:34:27 -0700 |
commit | 888a61bd085d8b031c1b05b22eae51fae1004aba (patch) | |
tree | 7504884b7213eb5bce14518fbdc44f76a84e9ab2 | |
parent | eb9a1c8a4602386193e003d113af919f7d2514ae (diff) | |
download | vbootrom-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-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |