aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-04-29 17:37:53 +0200
committerJames Cameron <quozl@laptop.org>2020-03-12 14:17:55 +1100
commitd41480ce47dd60e5eb4aba1e0d812b84cc6b55fd (patch)
tree4fa62b02638b7ca249d25c8b4d935a66dba58a9c
parent151220f31650ad1c54eafbe1981654887fe416c2 (diff)
downloadopenfirmware-d41480ce47dd60e5eb4aba1e0d812b84cc6b55fd.tar.gz
memtest86: fix build with recent gcc
It includes a section with the build id: ld --warn-constructors --warn-common -static -T memtest_shared.lds \ -o memtest_shared head.o reloc.o main.o test.o init.o lib.o patn.o \ screen_buffer.o config.o memsize.o random.o olpc.o lfbega.o && \ ld -shared -Bsymbolic -T memtest_shared.lds -o memtest_shared head.o \ reloc.o main.o test.o init.o lib.o patn.o screen_buffer.o config.o \ memsize.o random.o olpc.o lfbega.o ld: could not find section .gnu.hash ld: final link failed: nonrepresentable section on output make[1]: *** [Makefile:117: memtest_shared] Error 1
-rw-r--r--clients/memtest86/memtest_shared.lds1
1 files changed, 1 insertions, 0 deletions
diff --git a/clients/memtest86/memtest_shared.lds b/clients/memtest86/memtest_shared.lds
index eef6006a..d00549ce 100644
--- a/clients/memtest86/memtest_shared.lds
+++ b/clients/memtest86/memtest_shared.lds
@@ -19,6 +19,7 @@ SECTIONS {
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.hash : { *(.hash) }
+ .gnu.hash : { *(.gnu.hash) }
.dynamic : { *(.dynamic) }
.rel.text : { *(.rel.text .rel.text.*) }