]> xenbits.xensource.com Git - seabios.git/commit
vgasrc: ignore .node.gnu.property (binutils-2.36 support)
authorSergei Trofimovich <slyfox@gentoo.org>
Thu, 20 May 2021 22:18:48 +0000 (23:18 +0100)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 26 May 2021 14:07:01 +0000 (10:07 -0400)
commit6eff8085980dba0938cea0193b8a0fd3c6b0c4ca
treeddf04eae47c10e4dd01bcea63f22e17dad388f3b
parentb0d61ecef66eb05bd7a4eb7ada88ec5dab06dfee
vgasrc: ignore .node.gnu.property (binutils-2.36 support)

Modern binutils unconditionally tracks x86_64 ISA levels in intermediate
files in .note.gnu.property. Custom liker script does not handle the
section and complains about it:

    ld --gc-sections -T out/vgasrc/vgalayout.lds out/vgaccode16.o \
        out/vgaentry.o out/vgaversion.o -o out/vgarom.o
    ld: section .note.gnu.property LMA [0000000000000000,0000000000000027] \
        overlaps section .text LMA [0000000000000000,00000000000098af]

The change ignores .note* sections.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
vgasrc/vgalayout.lds.S