[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/2218] Weak undefined symbol doesn't work proper with PIE
From: |
hjl at lucon dot org |
Subject: |
[Bug ld/2218] Weak undefined symbol doesn't work proper with PIE |
Date: |
26 Jan 2006 23:39:42 -0000 |
------- 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,
address@hidden 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:
address@hidden 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
address@hidden pie-4]$
On ia64,
address@hidden 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
address@hidden 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 ld/2218] New: Weak undefined symbol doesn't work proper with PIE, hjl at lucon dot org, 2006/01/26
- [Bug ld/2218] Weak undefined symbol doesn't work proper with PIE,
hjl at lucon dot org <=
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, hjl at lucon dot org, 2006/01/26
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, hjl at lucon dot org, 2006/01/27
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, vapier at gentoo dot org, 2006/01/27
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, vapier at gentoo dot org, 2006/01/27
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, hjl at lucon dot org, 2006/01/31
- [Bug ld/2218] Weak undefined symbol doesn't work properly with PIE, hjl at lucon dot org, 2006/01/31