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>
This commit is contained in:
Sergei Trofimovich 2021-05-20 23:18:48 +01:00 committed by Kevin O'Connor
parent b0d61ecef6
commit 6eff808598
1 changed files with 8 additions and 1 deletions

View File

@ -19,5 +19,12 @@ SECTIONS
// Discard regular data sections to force a link error if
// 16bit code attempts to access data not marked with VAR16.
/DISCARD/ : { *(.text*) *(.rodata*) *(.data*) *(.bss*) *(COMMON) }
/DISCARD/ : {
*(.text*)
*(.rodata*)
*(.data*)
*(.bss*)
*(COMMON)
*(.note*)
}
}