Skip to content
Commit e968b8d4 authored by Hirokazu Takata's avatar Hirokazu Takata
Browse files

m32r: add NOTES to vmlinux.lds.S to remove .note.gnu.build-id section



Building with --build-id option, .note.gnu.build-id section is added
to vmlinux.bin.  But some old buggy binutils creates a huge vmlinux.bin,
and a bootloader fails to boot its zImage as well.

This patch adds a NOTES macro to a linker script vmlinux.ld.S to put
.note.gnu.build-id section into .note section.
Then, the .note section will be removed, because "-R .note" option is
specified in OBJCOPYFLAGS to make a vmlinux.bin binary.

Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
parent 56023585
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment