浏览代码

[IA64] check-segrel.lds vs --build-id

Some versions of ld with --build-id support will crash when using the flag
with a linker script that discards notes.  This bites ia64's check-segrel.lds.
The bug is easy to avoid.

Signed-off-by: Roland McGrath <roland@redhat.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Roland McGrath 17 年之前
父节点
当前提交
d650c37b2f
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/ia64/scripts/check-segrel.lds

+ 1 - 0
arch/ia64/scripts/check-segrel.lds

@@ -1,6 +1,7 @@
 SECTIONS {
 	. = SIZEOF_HEADERS;
 	.rodata : { *(.rodata) } :ro
+	.note : { *(.note*) }
 	. = 0xa0000;
 	.data : { *(.data) } :dat
 	/DISCARD/ : { *(*) }