question of 'SIZEOF_HEADERS' !!!!!!!!!!!!!!!

4 messages, 3 authors, 2000-08-02 · open the first message on its own page

question of 'SIZEOF_HEADERS' !!!!!!!!!!!!!!!

From: Rolf Liu <hidden>
Date: 2000-08-01 11:46:15

Hi, all
I am linking the linux ppc kernel .
I found a symblo named 'SIZEOF_HEADERS' in the link script file
'vmlinux.lds'.
I wonder where the symbol come from.
I have searched throuth the source tree, but I can't find the definition of
it.
Who can tell me some info about it ? at least the value of it ?
thanks a lot .

BRs
Rolf Liu


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: question of 'SIZEOF_HEADERS' !!!!!!!!!!!!!!!

From: Rolf Liu <hidden>
Date: 2000-08-02 02:44:26

Is this 'SIZEOF_HEADERS' just the size of the ELF header , which is 304 byte
long ?


Hi, all
I am linking the linux ppc kernel .
I found a symblo named 'SIZEOF_HEADERS' in the link script file
'vmlinux.lds'.
I wonder where the symbol come from.
I have searched throuth the source tree, but I can't find the definition
of
it.
Who can tell me some info about it ? at least the value of it ?
thanks a lot .

BRs
Rolf Liu



** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: question of 'SIZEOF_HEADERS' !!!!!!!!!!!!!!!

From: Daniel Marmier <hidden>
Date: 2000-08-02 05:49:33

Rolf Liu wrote:
Hi, all
I am linking the linux ppc kernel .
I found a symblo named 'SIZEOF_HEADERS' in the link script file
'vmlinux.lds'.
I wonder where the symbol come from.
Found in ld's info pages, section arithmetic functions :

`SIZEOF_HEADERS'
`sizeof_headers'
     Return the size in bytes of the output file's headers.  You can
     use this number as the start address of the first section, if you
     choose, to facilitate paging.


				Daniel Marmier

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: question of 'SIZEOF_HEADERS' !!!!!!!!!!!!!!!

From: Gabriel Paubert <hidden>
Date: 2000-08-02 07:37:11

On Tue, 1 Aug 2000, Rolf Liu wrote:
Hi, all
I am linking the linux ppc kernel .
I found a symblo named 'SIZEOF_HEADERS' in the link script file
'vmlinux.lds'.
I wonder where the symbol come from.
info ld

(Hint: builtin functions section)

	Gabriel.
kkk


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help