diff options
author | Hirokazu Takata <takata@linux-m32r.org> | 2009-10-04 11:10:55 -0400 |
---|---|---|
committer | Hirokazu Takata <takata@linux-m32r.org> | 2009-11-03 18:33:23 -0500 |
commit | e968b8d404ae8ab4ef218cd145f6dcb71e65154b (patch) | |
tree | 20a8a8bb645e25f9275d391159147489741247c9 /arch/m32r | |
parent | 560235857fb79da48d36e8f866a0ee3b10a232bf (diff) |
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: Hirokazu Takata <takata@linux-m32r.org>
Diffstat (limited to 'arch/m32r')
-rw-r--r-- | arch/m32r/kernel/vmlinux.lds.S | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/m32r/kernel/vmlinux.lds.S b/arch/m32r/kernel/vmlinux.lds.S index 8ceb6181d805..7da94eaa082b 100644 --- a/arch/m32r/kernel/vmlinux.lds.S +++ b/arch/m32r/kernel/vmlinux.lds.S | |||
@@ -42,6 +42,8 @@ SECTIONS | |||
42 | _etext = .; /* End of text section */ | 42 | _etext = .; /* End of text section */ |
43 | 43 | ||
44 | EXCEPTION_TABLE(16) | 44 | EXCEPTION_TABLE(16) |
45 | NOTES | ||
46 | |||
45 | RODATA | 47 | RODATA |
46 | RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE) | 48 | RW_DATA_SECTION(32, PAGE_SIZE, THREAD_SIZE) |
47 | _edata = .; /* End of data section */ | 49 | _edata = .; /* End of data section */ |