Re: PCI Express support for 2.4 kernel

Tomas Szepe
2003-12-15T18:46:30Z

On Dec-15 2003, Mon, 13:35 -0500
Richard B. Johnson <root@chaos.analogic.com> 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@pinerecords.com>