2007-11-13 13:20:02 +00:00
|
|
|
#name: --set-section-flags test 1 (sections)
|
|
|
|
#ld: -Tflags1.ld
|
2012-11-27 17:20:29 +00:00
|
|
|
#objcopy_linked_file: --set-section-flags .post_text_reserve=contents,alloc,load,readonly,code
|
2016-05-09 11:04:16 +00:00
|
|
|
#readelf: -S --wide
|
|
|
|
#xfail: "dlx-*-*" "h8300-*-*" "i960-*-*" "ip2k-*-*" "m32r-*-*"
|
2014-12-06 15:45:22 +00:00
|
|
|
#xfail: "moxie-*-*" "mt-*-*" "visium-*-*" "*-*-nacl*"
|
2010-09-18 02:30:41 +00:00
|
|
|
#xfail: "*-*-hpux*" "hppa*64*-*-*"
|
2016-05-09 11:04:16 +00:00
|
|
|
# Fails on the DLX, H8300, I960, IP2K, M32R, MOXIE, MT, VISIUM
|
2012-11-27 17:20:29 +00:00
|
|
|
# and all NaCl targets,
|
2011-05-13 04:19:18 +00:00
|
|
|
# because the two sections are not merged into one segment.
|
2010-10-28 06:21:49 +00:00
|
|
|
# (There is no good reason why they have to be).
|
2007-12-31 11:29:01 +00:00
|
|
|
# Fails on HPUX systems because the .type pseudo-op behaves differently.
|
2010-09-18 02:30:41 +00:00
|
|
|
# Fails on hppa64 because a PHDR is always added.
|
2007-11-13 13:20:02 +00:00
|
|
|
|
|
|
|
#...
|
2016-05-09 11:04:16 +00:00
|
|
|
Section Headers:
|
2007-11-13 13:20:02 +00:00
|
|
|
#...
|
2016-05-09 11:04:16 +00:00
|
|
|
\[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AX.*
|
|
|
|
\[[ 0-9]+\] \.post_text_reserve.*[ \t]+PROGBITS[ \t0-9a-f]+AX.*
|
2007-11-13 13:20:02 +00:00
|
|
|
#pass
|