public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* linker crash in arm stub generation
@ 2009-06-11 17:09 Phil Blundell
  2009-06-12 12:36 ` Nick Clifton
  0 siblings, 1 reply; 22+ messages in thread
From: Phil Blundell @ 2009-06-11 17:09 UTC (permalink / raw)
  To: binutils

This testcase causes the linker (CVS head from a couple of days ago,
arm-linuxgnueabi target) to segfault in arm_build_one_stub():

$ cat test1.s
	.cpu arm10tdmi
	.fpu softvfp
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 18, 4
	.code	16
	.file	"t.c"
	.text
	.align	2
	.global	foo
	.code	16
	.thumb_func
	.type	foo, %function
foo:
	@ sp needed for prologue
	bx	lr
	.size	foo, .-foo
	.ident	"GCC: (GNU) 4.4.0"
	.section	.note.GNU-stack,"",%progbits
$ cat test2.s
        bl      foo(PLT)
$ ../gas/as-new -o test1.o test1.s
$ ../gas/as-new -o test2.o test2.s
$ ./ld-new -shared -o test1.so test1.o
$ ./ld-new -shared test2.o test1.so
Segmentation fault
$

p.


^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2009-09-14 12:30 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 17:09 linker crash in arm stub generation Phil Blundell
2009-06-12 12:36 ` Nick Clifton
2009-06-12 13:19   ` Christophe LYON
2009-06-12 13:49     ` Nick Clifton
2009-06-12 14:06     ` Daniel Jacobowitz
2009-06-12 14:13       ` Christophe LYON
2009-06-15 14:22         ` Christophe LYON
2009-06-15 17:59           ` Daniel Jacobowitz
2009-06-17 15:44             ` Christophe LYON
2009-06-17 16:09               ` Phil Blundell
2009-06-17 18:10               ` Daniel Jacobowitz
2009-06-18 14:25                 ` Christophe LYON
2009-06-18 14:36                   ` Christophe LYON
2009-06-22  9:24                     ` Nick Clifton
2009-06-22 11:33                       ` Christophe LYON
2009-08-26  1:21                     ` Fix Thumb-2 shared libraries Daniel Jacobowitz
2009-08-26  3:11                       ` Daniel Jacobowitz
2009-09-09 18:36                         ` Daniel Jacobowitz
2009-09-14 12:30                           ` Daniel Jacobowitz
2009-08-26 10:39                       ` Christophe LYON
2009-08-26 15:00                         ` Daniel Jacobowitz
2009-08-26 17:24                           ` Christophe LYON

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).