x86: Don't generate .note.gnu.build-id section

This patch adds "--build-id=none" to default LDFLAGS so
.note.gnu.build-id section is not generated. This section
contains unique identification for the built files what is
not important to us (at least at this moment).

This change simplifies all linker scripts for SoCs based on x86
(at this moment we only have Quark X1000) since we don't have to
care about it anymore.
This commit is contained in:
Andre Guedes 2015-05-08 16:15:42 -03:00 committed by Jesus Sanchez-Palencia
parent cb0510ebcf
commit 13bbe8a5b5
2 changed files with 1 additions and 7 deletions

View File

@ -12,7 +12,7 @@ STRIP = strip
CFLAGSNO = -Wall -g -I/usr/local/include
CFLAGS += $(CFLAGSNO)
ifeq ($(HOST_OS),Linux)
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic
LDFLAGS = -Wl,-Map=contiki-$(TARGET).map,-export-dynamic,--build-id=none
else
LDFLAGS = -Wl
endif

View File

@ -60,10 +60,4 @@ SECTIONS {
*(COMMON)
*(.bss)
}
/* Put this here so it doesn't sit above the multiboot section. */
.note.gnu.build-id :
{
*(.note.gnu.build-id)
}
}