[PATCH] [RFC] NetBSD note segment

Momchil Velikov velco@fadata.bg
Sun Nov 3 09:22:00 GMT 2002


On Sun, 3 Nov 2002 08:10:29 -0800
Jason R Thorpe <thorpej@wasabisystems.com> wrote:

> On Sun, Nov 03, 2002 at 01:15:55PM +0200, Momchil Velikov wrote:
> 
>  > This is the first shot for generating NetBSD .note* section and the
>  > corresponding PT_NOTE segment.  Without this segment NetBSD refuses
>  > to execute the file.
> 
> This patch is not really correct.  

You mean the content of the section may change with new OS releases ?
Like new version numbers, etc ?

> The .note section in question
> should be supplied by system files, not by a file shipped with the
> compiler.

Then it should be in crt0.o, not in files overriden by third party
compilers. As far as I can understand crtbegin*.o is compiler's turf, no?

> I am working on a comprehensive fix for this problem, but in the mean
> time, you can run noteless binaries by enabling the EXEC_ELF_NOTELESS
> option in your kernel.

Thanks.

~velco



More information about the Gcc-patches mailing list