[lkml]   [2009]   [Mar]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: Latest brk patchset
Jeremy Fitzhardinge wrote:
>> It really doesn't make much sense to me, and is more than a bit
>> confusing given the symbols.
> Mostly because I knew that the bss would get mapped into the appropriate
> phdr segment correctly, but I wasn't sure that another bss-like section
> would be.

It will; in fact if they are adjacent then ld will typically merge the

> Also because historically the brk segment was just an
> extension of the executable's bss, and its more or less the same too.

An extension of, yes, but not a part of.

> Is there any real benefit in putting it into another section?

Well, the semantics are different; the .bss section is zeroed while the
brk isn't, and the brk symbols don't necessarily point to the data
associated with those particular symbols, unlike (of course) the bss.

It's not a big issue, obviously, it just seems cleaner to me that way.


H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.

 \ /
  Last update: 2009-03-15 01:43    [W:0.127 / U:2.428 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site