Re: [PATCH] Add ELF note with Linux version

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jeremy Fitzhardinge <jeremy@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Dan Aloni <da-x@...>, Bernhard Walle <bwalle@...>, Roland McGrath <roland@...>
Date: Friday, September 14, 2007 - 5:07 pm

> > This seems outright silly.

Lennart posted this:
An ARM vmlinux kernel image built with pre-build-id binutils has:

        Program Header:
            LOAD off    0x00008000 vaddr 0xc0008000 paddr 0xc0008000 align 2**15
                 filesz 0x002e503c memsz 0x003032c0 flags rwx
        private flags = 4000002: [Version4 EABI] [has entry point]


Whereas a build-id binutils-built vmlinux kernel image ends up with:

        Program Header:
            LOAD off    0x00008000 vaddr 0x00000000 paddr 0x00000000 align 2**15
                 filesz 0x00000024 memsz 0x00000024 flags r--
            LOAD off    0x00010000 vaddr 0xc0008000 paddr 0xc0008000 align 2**15
                 filesz 0x002e503c memsz 0x003032c0 flags rwx
            NOTE off    0x00008000 vaddr 0x00000000 paddr 0x00000000 align 2**2
                 filesz 0x00000024 memsz 0x00000024 flags r--
        private flags = 4000002: [Version4 EABI] [has entry point]


The .note.gnu.build-id section causes objcopy to produce a 3G+
Image file, breaking the build.


Samuel Ortiz posted following patch:


I cannot see why this should fix it since the patch does
not discard the section. Maybe the inclusion of the section in
some oter section does some good.

Anyway the original submitter of the build-id should have identified such
issues and fixed all archs.

And I still do not get exactly what problem the note section solves when
included in vmlinux....

	Sam
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Add ELF note with Linux version, Bernhard Walle, (Tue Sep 4, 11:00 am)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Thu Sep 6, 6:36 am)
Re: [PATCH] Add ELF note with Linux version, Andrew Morton, (Thu Sep 13, 5:42 pm)
Re: [PATCH] Add ELF note with Linux version, Sam Ravnborg, (Thu Sep 13, 6:13 pm)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Thu Sep 13, 6:44 pm)
Re: [PATCH] Add ELF note with Linux version, Sam Ravnborg, (Fri Sep 14, 2:08 am)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Fri Sep 14, 3:47 pm)
Re: [PATCH] Add ELF note with Linux version, Sam Ravnborg, (Fri Sep 14, 5:07 pm)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Fri Sep 14, 5:31 pm)
Re: [PATCH] Add ELF note with Linux version, Roland McGrath, (Fri Sep 14, 9:30 pm)
Re: [PATCH] Add ELF note with Linux version, Roland McGrath, (Fri Sep 14, 5:15 pm)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Thu Sep 13, 5:56 pm)
Re: [PATCH] Add ELF note with Linux version, Bernhard Walle, (Fri Sep 14, 3:52 am)
Re: [PATCH] Add ELF note with Linux version, Jeremy Fitzhardinge, (Fri Sep 14, 4:00 pm)