Skip to contentSkip to conversation

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

DISCUSSION Rolf Liu 3 participants 4 messages Aug 1, 2000 – Aug 2, 2000

lore
Share & tools
lore

Rolf Liu

author
#0 lore raw

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/

author
#1 lore raw

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

Quoted 7 lines

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

Quoted 10 lines

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/

#2 lore raw
In reply to Rolf Liu
Quoted 6 lines · Rolf Liu

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/

#3 lore raw
In reply to Rolf Liu
Quoted 6 lines · Rolf Liu

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/