From: Horst von Brand <vonbrand@inf.utfsm.cl>
To: "Paweł Sikora" <pluto@agmk.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [2.6] binfmt_elf bug (exposed by klibc).
Date: Fri, 07 Oct 2005 09:46:03 -0400 [thread overview]
Message-ID: <200510071346.j97Dk3va005818@laptop11.inf.utfsm.cl> (raw)
In-Reply-To: Message from =?utf-8?q?Pawe=C5=82_Sikora?= <pluto@agmk.net> of "Fri, 07 Oct 2005 12:09:05 +0200." <200510071209.05656.pluto@agmk.net>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1449 bytes --]
Paweł Sikora <pluto@agmk.net> wrote:
> I've a simple program called empty.c.
>
> $ cat empty.c
>
> int main(int argc, char* argv[])
> {
> return 0;
> }
>
> $ cat empty410.s
>
> .file "empty.c"
> .text
> .p2align 4,,15
> .globl main
> .type main, @function
> main:
> xorl %eax, %eax
> ret
> .size main, .-main
> .ident "GCC: (GNU) 4.1.0 20050922 (experimental)"
> .section .note.GNU-stack,"", at progbits
I get a substantially different empty.s (gcc-4.0.2, Fedora rawhide on i686):
.file "empty.c"
.text
.p2align 2,,3
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
subl $8, %esp
andl $-16, %esp
subl $16, %esp
xorl %eax, %eax
leave
ret
.size main, .-main
.ident "GCC: (GNU) 4.0.2 20050928 (Red Hat 4.0.2-1)"
.section .note.GNU-stack,"",@progbits
> binutils-2.15.94.0.2.2 produces for this code empty .data and .bss
> sections:
binutils-2.16.91.0.2-4 doesn't. It looks like you are using broken tools.
--
Dr. Horst H. von Brand User #22616 counter.li.org
Departamento de Informatica Fono: +56 32 654431
Universidad Tecnica Federico Santa Maria +56 32 654239
Casilla 110-V, Valparaiso, Chile Fax: +56 32 797513
next prev parent reply other threads:[~2005-10-07 13:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-07 10:09 Paweł Sikora
2005-10-07 13:46 ` Horst von Brand [this message]
2005-10-07 14:11 ` linux-os (Dick Johnson)
2005-10-07 14:21 ` Paweł Sikora
2005-10-07 15:33 ` Horst von Brand
2005-10-07 15:41 ` Paweł Sikora
[not found] ` <Pine.LNX.4.61.0510071200340.11579@chaos.analogic.com>
2005-10-07 21:20 ` Paweł Sikora
[not found] ` <Pine.LNX.4.61.0510071740040.13291@chaos.analogic.com>
2005-10-07 22:42 ` Paweł Sikora
2005-10-08 14:30 ` Jan-Benedict Glaw
2005-10-08 19:29 ` Paweł Sikora
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200510071346.j97Dk3va005818@laptop11.inf.utfsm.cl \
--to=vonbrand@inf.utfsm.cl \
--cc=linux-kernel@vger.kernel.org \
--cc=pluto@agmk.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®