------- Additional Comments From hjl at lucon dot org  2006-09-04 21:59 -------
Here is a very small testcase

[EMAIL PROTECTED] 3169]$ cat foo.s
        .proc   foo#
        .global foo#
foo#:
        .weak   _DYNAMIC#
        addl [EMAIL PROTECTED](@fptr(_DYNAMIC#)),gp
        .endp foo
[EMAIL PROTECTED] 3169]$ cat bar.S
        .text
        .align 16
        .proc bar#
bar:
        addl r14 = @ltoff(@fptr(foo#)), gp
        .endp bar#

[EMAIL PROTECTED] 3169]$ make
cc -c bar.S
cc -c foo.s
./ld -o libfoo.so -shared bar.o foo.o
./ld: BFD 2.17.50 20060904 assertion fail elf64-ia64.c:4882
make: *** [libfoo.so] Segmentation fault
make: *** Deleting file `libfoo.so'
[EMAIL PROTECTED] 3169]$

_DYNAMIC is a special symbol. I don't think Osprey uses it correctly, if it
should be used by compiler at all.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=3169

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to