aboutsummaryrefslogtreecommitdiff
path: root/binutils/testsuite/binutils-all/readelf.s
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-12-19 11:34:47 -0800
committerH.J. Lu <hjl.tools@gmail.com>2013-12-19 11:34:47 -0800
commit9ef5d938819dff73d7640a2654b07df64670d7f9 (patch)
tree035e8760ec659165e1dc2d2665604c02d3a85f33 /binutils/testsuite/binutils-all/readelf.s
parentfa8761a3e0d999ada63194291ddf9b308a8d8276 (diff)
downloadgdb-9ef5d938819dff73d7640a2654b07df64670d7f9.zip
gdb-9ef5d938819dff73d7640a2654b07df64670d7f9.tar.gz
gdb-9ef5d938819dff73d7640a2654b07df64670d7f9.tar.bz2
Set SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections
It is a good pratice to set the SHF_INFO_LINK bit when the sh_info field represents a section header index. bfd/ PR binutils/16317 * elf.c (assign_section_numbers): Set the SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections when setting the sh_info field. binutils/testsuite/ PR binutils/16317 * binutils-all/readelf.s: Updated. * binutils-all/readelf.s-64: Likewise. ld/testsuite/ PR binutils/16317 * ld-elf/linkinfo1.s: New file. * ld-elf/linkinfo1a.d: Likewise. * ld-elf/linkinfo1b.d: Likewise.
Diffstat (limited to 'binutils/testsuite/binutils-all/readelf.s')
-rw-r--r--binutils/testsuite/binutils-all/readelf.s2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/testsuite/binutils-all/readelf.s b/binutils/testsuite/binutils-all/readelf.s
index 22fb5d1..303e0c7 100644
--- a/binutils/testsuite/binutils-all/readelf.s
+++ b/binutils/testsuite/binutils-all/readelf.s
@@ -6,7 +6,7 @@ Section Headers:
# On the normal MIPS systems, sections must be aligned to 16 byte
# boundaries. On IA64, text sections are aligned to 16 byte boundaries.
+\[ 1\] .text +PROGBITS +00000000 0000(34|40) 0000(08|10) 00 +AX +0 +0 +(.|..)
- +\[ 2\] .rel.+text +REL. +0+ 0+.* 0000.. 0. +. +1 +4
+ +\[ 2\] .rel.+text +REL. +0+ 0+.* 0000.. 0. +I +. +1 +4
# MIPS targets put .rela.text here.
#...
+\[ .\] .data +PROGBITS +00000000 0000(3c|48|50) 0000(04|10) 00 +WA +0 +0 +(.|..)