Re: [patch 16/21] Xen-paravirt: Add code into head.S to handle being booted by Xen

Eric W. Biederman
2007-02-15T02:20:44Z

Jeremy Fitzhardinge <jeremy@goop.org> writes:

> Eric W. Biederman wrote:
>> Reasonable and it's probably worth letting the binutils developer know.
>> I do agree that it is weird. It might be that something in binutils
>> doesn't like us dropping some of the notes.
>>
>
> What do you mean by "dropping some of the notes"? I think the only
> notes (at least in this case) are the Xen ones, and they're all included.

I'm pretty certain we explicitly drop the weird GNU note that
is automatically generated by gcc and specifies something informational.

Basically into .note we include *(.note.*) but not *(.note).

I don't think anything we are doing is wrong but ld gets confused easily
in the corner cases. I'm modestly surprised we didn't have to mark our
.note.xxx scions as ".section .note.xxx @note" or whatever the proper
gas syntax is.

Eric