------- Additional Comments From hjl at lucon dot org  2006-01-26 23:39 -------
Created an attachment (id=852)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=852&action=view)
A testcase

On x86,

[EMAIL PROTECTED] pie-4]$ make
gcc -B./ -c -fPIC -g -DBROKEN -o foo.o foo.c
gcc -B./ -pie -o foo foo.o -Wl,-z,nocombreloc
gcc -B./ -c -fPIC -g -DOK2 -o bar.o foo.c
gcc -B./ -pie -o bar bar.o -Wl,-z,nocombreloc
gcc -B./ -o exec foo.o -Wl,-z,nocombreloc
./exec
this should be null: (nil)
./bar
this should be null: (nil)
this should be null: (nil)
./foo
this should be null: 0x1cc000

On x86-64:

[EMAIL PROTECTED] pie-4]$ make CC=gcc
gcc -c -fPIC -g -DBROKEN -o foo.o foo.c
gcc -pie -o foo foo.o -Wl,-z,nocombreloc
gcc -c -fPIC -g -DOK2 -o bar.o foo.c
gcc -pie -o bar bar.o -Wl,-z,nocombreloc
gcc -o exec foo.o -Wl,-z,nocombreloc
./exec
this should be null: (nil)
./bar
this should be null: (nil)
this should be null: (nil)
./foo
this should be null: 0x552aaaa000
[EMAIL PROTECTED] pie-4]$

On ia64,

[EMAIL PROTECTED] pie-4]$ make
./exec
this should be null: (nil)
./bar
this should be null: (nil)
this should be null: 0x2000000800000000
./foo
this should be null: 0x2000000800000000
[EMAIL PROTECTED] pie-4]$


-- 


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

------- 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