This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff
- From: "darkstuff at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Jun 2009 16:13:25 -0000
- Subject: [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff
- Reply-to: sourceware-bugzilla at sourceware dot org
Hi, i hope i'm not wrong, but:
Gorgo:~# cat p.c
int main(void)
{
return (0);
}
Gorgo:~# gcc -Ttext=0x0 p.c -o p
Gorgo:~# ./p
p[3013]: segfault at fffff034 ip b7ee9086 sp bf804368 error 4 in ld-2.9.so[b7ee7000+1c000]
Segmentation fault
Gorgo:~# diet -v gcc -Ttext=0x0 p.c -o p
gcc -nostdlib -static -L/usr/lib/diet/lib-i386 /usr/lib/diet/lib-i386/start.o -Ttext=0x0 p.c -o p -
isystem /usr/lib/diet/include -D__dietlibc__ /usr/lib/diet/lib-i386/libc.a -lgcc
Gorgo:~# ./p
Gorgo:~#
Same with .data section and if i compile static with simple gcc too. Beyond 0x100 i have a link error:
/usr/bin/ld: p: Not enough room for program headers, try linking with -N
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
The system is a Debian/testing.
Regards
Pierre
--
Summary: Segfault in ld-2.9.so specifing segment start from 0x0
to 0xff
Product: glibc
Version: 2.9
Status: NEW
Severity: minor
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: darkstuff at gmail dot com
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10243
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.