public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Absolute symbols in vmlinux_64.lds.S
@ 2009-03-09 23:59 Jeremy Fitzhardinge
  2009-03-10  1:23 ` Yinghai Lu
  2009-03-10  1:36 ` Eric W. Biederman
  0 siblings, 2 replies; 12+ messages in thread
From: Jeremy Fitzhardinge @ 2009-03-09 23:59 UTC (permalink / raw)
  To: Yinghai Lu
  Cc: Ingo Molnar, Eric W. Biederman, the arch/x86 maintainers,
	Linux Kernel Mailing List

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 = .;


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?).

Thanks,
    J

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: Absolute symbols in vmlinux_64.lds.S
@ 2009-03-10  4:37 Jeremy Fitzhardinge
  2009-03-10  5:32 ` Yinghai Lu
  0 siblings, 1 reply; 12+ messages in thread
From: Jeremy Fitzhardinge @ 2009-03-10  4:37 UTC (permalink / raw)
  To: Yinghai Lu
  Cc: Ingo Molnar, Eric W. Biederman, the arch/x86 maintainers,
	Linux Kernel Mailing List

[-- Attachment #1: Type: text/plain, Size: 631 bytes --]



Yinghai Lu <yinghai@kernel.org> wrote:

>Jeremy Fitzhardinge wrote:
>> 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 = .;
>> 
>> 
>> 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
-- 
Sent from my Android phone with K-9. Please excuse my brevity.

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2009-03-10 22:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-09 23:59 Absolute symbols in vmlinux_64.lds.S Jeremy Fitzhardinge
2009-03-10  1:23 ` Yinghai Lu
2009-03-10  5:37   ` Sam Ravnborg
2009-03-10  5:49     ` Eric W. Biederman
2009-03-10 20:20       ` H. Peter Anvin
2009-03-10 21:25         ` Eric W. Biederman
2009-03-10 22:26           ` Jeremy Fitzhardinge
2009-03-10  5:57     ` Yinghai Lu
2009-03-10 11:24       ` Sam Ravnborg
2009-03-10  1:36 ` Eric W. Biederman
  -- strict thread matches above, loose matches on Subject: below --
2009-03-10  4:37 Jeremy Fitzhardinge
2009-03-10  5:32 ` Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox