old-cross-binutils/ld/testsuite/ld-elf/endsym.d
Alan Modra 4cc2bf08a4 Don't PROVIDE over top of common symbols
This:
  int end[100000];
  int main(void) { end[99999] = 0; return 0; }
should not segfault.

ld/
	* ldexp.c (exp_fold_tree_1 <etree_provide>): Leave bfd_link_hash_common
	symbols alone.
ld/testsuite/
	* ld-elf/endsym.s, *ld-elf/endsym.d: New test.
2014-12-23 23:36:50 +10:30

13 lines
134 B
Makefile

#source: start.s
#source: endsym.s
#ld: --sort-common
#nm: -n
#notarget: hppa*-*-hpux*
#...
.* end
#...
.* end2
#...
.* _?_end
#pass