Skip to content

Commit

Permalink
m32r: add NOTES to vmlinux.lds.S to remove .note.gnu.build-id section
Browse files Browse the repository at this point in the history
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: Hirokazu Takata <takata@linux-m32r.org>
  • Loading branch information
Hirokazu Takata committed Nov 3, 2009
1 parent 5602358 commit e968b8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/m32r/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ SECTIONS
_etext = .; /* End of text section */

EXCEPTION_TABLE(16)
NOTES

RODATA
RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE)
_edata = .; /* End of data section */
Expand Down

0 comments on commit e968b8d

Please sign in to comment.