Re: [PATCH] Add ELF note with Linux version

Roland McGrath
2007-09-15T01:31:37Z

> Yes, binutils can be pretty fragile with notes about. In this case it
> seems to be a specific problem with build-id; I'm not really sure what
> build-id actually does.

The thing about the build ID section that brings up issues with linking is
that it is a SHF_ALLOC, SHT_NOTE section. As you mentioned, this is a
general, straightforward, and well-defined thing in ELF. But in practice,
there were not previously SHF_ALLOC note sections used with custom linker
scripts like the kernel's. (They are used every day in normal executables
and DSOs, but those don't use custom linker scripts.)

Thanks,
Roland