2010-02-27 20:34:25 +08:00
|
|
|
#source: init-fini-arrays.s
|
|
|
|
#ld: -r
|
2010-02-28 07:23:20 +08:00
|
|
|
#readelf: -S --wide
|
2016-05-28 00:53:01 +08:00
|
|
|
#xfail: cr16-*-* crx-*-* msp430-*-*
|
2013-05-03 05:06:15 +08:00
|
|
|
# msp430 puts the init_array and fini_array inside the .rodata section.
|
2016-05-28 00:53:01 +08:00
|
|
|
# cr16 and crx use non-standard scripts with memory regions, which don't play
|
2013-05-03 05:06:15 +08:00
|
|
|
# well with unique group sections under ld -r.
|
2010-02-27 20:34:25 +08:00
|
|
|
|
|
|
|
#...
|
2017-04-10 13:41:35 +08:00
|
|
|
\[[ 0-9]+\] \.init_array\.01000[ \t]+INIT_ARRAY[ \t0-9a-f]+WA?.*
|
2010-02-27 20:34:25 +08:00
|
|
|
#...
|
2017-04-10 13:41:35 +08:00
|
|
|
\[[ 0-9]+\] \.fini_array\.01000[ \t]+FINI_ARRAY[ \t0-9a-f]+WA?.*
|
2010-02-27 20:34:25 +08:00
|
|
|
#pass
|