public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff @ 2009-06-05 16:13 darkstuff at gmail dot com 2009-06-05 16:27 ` [Bug libc/10243] " drepper at redhat dot com ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: darkstuff at gmail dot com @ 2009-06-05 16:13 UTC (permalink / raw) To: glibc-bugs 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/10243] Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff 2009-06-05 16:13 [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff darkstuff at gmail dot com @ 2009-06-05 16:27 ` drepper at redhat dot com 2009-06-05 16:44 ` darkstuff at gmail dot com 2009-06-06 10:41 ` pasky at suse dot cz 2 siblings, 0 replies; 4+ messages in thread From: drepper at redhat dot com @ 2009-06-05 16:27 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From drepper at redhat dot com 2009-06-05 16:27 ------- Then don't do this. You cannot just change the way linking works and expect it to work. -- What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/10243] Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff 2009-06-05 16:13 [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff darkstuff at gmail dot com 2009-06-05 16:27 ` [Bug libc/10243] " drepper at redhat dot com @ 2009-06-05 16:44 ` darkstuff at gmail dot com 2009-06-06 10:41 ` pasky at suse dot cz 2 siblings, 0 replies; 4+ messages in thread From: darkstuff at gmail dot com @ 2009-06-05 16:44 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From darkstuff at gmail dot com 2009-06-05 16:43 ------- Subject: Re: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff > ------- Additional Comments From drepper at redhat dot com > 2009-06-05 16:27 ------- > Then don't do this. You cannot just change the way linking works > and expect it > to work. Ok, but why doesn't it says that it's an invalid value as it does for 0x100? Pierre -- 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug libc/10243] Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff 2009-06-05 16:13 [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff darkstuff at gmail dot com 2009-06-05 16:27 ` [Bug libc/10243] " drepper at redhat dot com 2009-06-05 16:44 ` darkstuff at gmail dot com @ 2009-06-06 10:41 ` pasky at suse dot cz 2 siblings, 0 replies; 4+ messages in thread From: pasky at suse dot cz @ 2009-06-06 10:41 UTC (permalink / raw) To: glibc-bugs ------- Additional Comments From pasky at suse dot cz 2009-06-06 10:41 ------- That would be a bug in binutils. -- 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-06-06 10:41 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2009-06-05 16:13 [Bug libc/10243] New: Segfault in ld-2.9.so specifing segment start from 0x0 to 0xff darkstuff at gmail dot com 2009-06-05 16:27 ` [Bug libc/10243] " drepper at redhat dot com 2009-06-05 16:44 ` darkstuff at gmail dot com 2009-06-06 10:41 ` pasky at suse dot cz
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).