Skip to contentSkip to conversation

Absolute symbols in vmlinux_64.lds.S

DISCUSSION Jeremy Fitzhardinge 2 participants 2 messages Mar 10, 2009

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines · Yinghai Lu
Quoted 11 lines · Jeremy Fitzhardinge

Why does vmlinux_64.lds.S use absolute symbols for things like __bss_start/stop:

__bss_start = .; /* BSS */

 .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
    *(.bss.page_aligned)
    *(.bss)
    }

__bss_stop = .;

Quoted 6 lines
Quoted 4 lines

vmlinux_32.lds.S puts __bss_start/stop into the .bss section itself. Is there some particular reason they need to be absolute symbols (relocation?).

they are the same.

Do you mean it makes no difference?

J

Signature · 1 line
Sent from my Android phone with K-9. Please excuse my brevity.
#1 lore raw
Quoted 15 lines · Jeremy Fitzhardinge
Quoted 12 lines · Yinghai Lu
Quoted 11 lines · Jeremy Fitzhardinge

Why does vmlinux_64.lds.S use absolute symbols for things like __bss_start/stop:

__bss_start = .; /* BSS */

 .bss : AT(ADDR(.bss) - LOAD_OFFSET) {
    *(.bss.page_aligned)
    *(.bss)
    }

__bss_stop = .;

Quoted 7 lines
Quoted 5 lines
Quoted 4 lines

vmlinux_32.lds.S puts __bss_start/stop into the .bss section itself. Is there some particular reason they need to be absolute symbols (relocation?).

they are the same.

Do you mean it makes no difference?

Sure. System.map should tell the value after the building.

YH