Re: PCI Express support for 2.4 kernel

From: Tomas Szepe
Date: Mon Dec 15 2003 - 13:48:11 EST


On Dec-15 2003, Mon, 13:35 -0500
Richard B. Johnson <root@xxxxxxxxxxxxxxxxxx> wrote:

_Please_ pay more attention to what I've had to write.

> > Richard, stop denying reality, go check out what gcc 3.3.2 does.

^^^^^

> Well, it seems I am NOT denying reality. Others have just
> parroted the contents of an ELF __Header__. I will show you the
> actual allocation data.
>
> quark:/home/johnson[1] cat xxx.c
>
> int foo; // Not initialized
> int bar=0; // Initialized
>
> quark:/home/johnson[2] gcc --version
> gcc (GCC) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)

^^^

> Disassembly of section .text:
> Disassembly of section .data:
>
> 00000000 <bar>:
> 0: 00 00 add %al,(%eax)
> ...
>
> This clearly shows that "bar" is the only variable in that object
> file. The variable, foo, is written in the header (not shown)
> so that the loader knows its size and its relocation symbol.

$ # (gcc version is 3.3.2)
$ cat x.c
int foo;
int bar = 0;
$ gcc -c -o x.o x.c
$ objdump --disassemble-all x.o

x.o: file format elf32-i386

Disassembly of section .bss:

00000000 <bar>:
0: 00 00 add %al,(%eax)
...

...

--
Tomas Szepe <szepe@xxxxxxxxxxxxxxx>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/