Strip the .note.gnu.property section for the mbr

This section is added since binutils Debian version 2.31.1-2 and causes mbr.bin
to grow in size beyond what can fit into the master boot record.

Forwarded: https://www.syslinux.org/archives/2018-August/026168.html

Gbp-Pq: Name 0016-strip-gnu-property.patch
This commit is contained in:
Lukas Schwaighofer 2018-08-18 12:48:21 +02:00 committed by openKylinBot
parent f259e66f29
commit bfa5029962
2 changed files with 10 additions and 2 deletions

View File

@ -69,5 +69,9 @@ SECTIONS
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/DISCARD/ : { *(.note.GNU-stack) }
/DISCARD/ :
{
*(.note.GNU-stack)
*(.note.gnu.property)
}
}

View File

@ -68,5 +68,9 @@ SECTIONS
.debug_funcnames 0 : { *(.debug_funcnames) }
.debug_typenames 0 : { *(.debug_typenames) }
.debug_varnames 0 : { *(.debug_varnames) }
/DISCARD/ : { *(.note.GNU-stack) }
/DISCARD/ :
{
*(.note.GNU-stack)
*(.note.gnu.property)
}
}