From: gregory.clement@free-electrons.com (Gregory CLEMENT)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: add a private asm/unaligned.h
Date: Mon, 30 Oct 2017 17:04:37 +0100 [thread overview]
Message-ID: <877evc1v1m.fsf@free-electrons.com> (raw)
In-Reply-To: <20171030155511.GQ20805@n2100.armlinux.org.uk> (Russell King's message of "Mon, 30 Oct 2017 15:55:12 +0000")
Hi Russell,
On lun., oct. 30 2017, Russell King - ARM Linux <linux@armlinux.org.uk> wrote:
> On Mon, Oct 30, 2017 at 04:33:07PM +0100, Gregory CLEMENT wrote:
>> Humm no, actually it was with the wrong branch. If I have the patch
>> "ARM: verify size of zImage" then arch/arm/boot/compressed/vmlinux is
>> not generated.
>>
>> But if I remove this patch then I can generate this file and so:
>> arm-linux-gnueabi-readelf -S ../build/arch/arm/boot/compressed/vmlinux
>> There are 22 section headers, starting at offset 0x4b402c:
>>
>> Section Headers:
>> [Nr] Name Type Addr Off Size ES Flg Lk Inf Al
>> [ 0] NULL 00000000 000000 000000 00 0 0 0
>> [ 1] .text PROGBITS 00000000 010000 005ef8 00 AX 0 0 32
>> [ 2] .rodata PROGBITS 00005ef8 015ef8 000d4c 00 A 0 0 4
>> [ 3] .piggydata PROGBITS 00006c44 016c44 48a552 00 A 0 0 1
>> [ 4] .got.plt PROGBITS 00491198 4a1198 00000c 04 WA 0 0 4
>> [ 5] .got PROGBITS 004911a4 4a11a4 000028 00 WA 0 0 4
>> [ 6] .pad PROGBITS 004911cc 4a11cc 000004 00 WA 0 0 1
>> [ 7] .bss NOBITS 004911d0 4a11d0 00001c 00 WA 0 0 4
>> [ 8] .stack NOBITS 004911f0 4a11d0 001000 00 WA 0 0 1
>> [ 9] .comment PROGBITS 00000000 4a11d0 00001c 01 MS 0 0 1
>> [10] .ARM.attributes ARM_ATTRIBUTES 00000000 4a11ec 00002d 00 0 0 1
>> [11] .debug_line PROGBITS 00000000 4a1219 00281b 00 0 0 1
>> [12] .debug_info PROGBITS 00000000 4a3a34 0066cb 00 0 0 1
>> [13] .debug_abbrev PROGBITS 00000000 4aa0ff 0013ea 00 0 0 1
>> [14] .debug_aranges PROGBITS 00000000 4ab4f0 0001a8 00 0 0 8
>> [15] .debug_str PROGBITS 00000000 4ab698 0019b4 01 MS 0 0 1
>> [16] .debug_ranges PROGBITS 00000000 4ad050 000640 00 0 0 8
>> [17] .debug_frame PROGBITS 00000000 4ad690 001010 00 0 0 4
>> [18] .debug_loc PROGBITS 00000000 4ae6a0 003643 00 0 0 1
>> [19] .symtab SYMTAB 00000000 4b1ce4 0015b0 10 20 225 4
>> [20] .strtab STRTAB 00000000 4b3294 000cc5 00 0 0 1
>> [21] .shstrtab STRTAB 00000000 4b3f59 0000d2 00 0 0 1
>
> I don't like readelf's output - please can you post the output of
> arm-linux-objdump -h ../build/arch/arm/boot/compressed/vmlinux
> instead.
Here it is:
arm-linux-gnueabi-objdump -h ../build/arch/arm/boot/compressed/vmlinux
../build/arch/arm/boot/compressed/vmlinux: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00005ef8 00000000 00000000 00010000 2**5
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rodata 00000d4c 00005ef8 00005ef8 00015ef8 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .piggydata 0048a552 00006c44 00006c44 00016c44 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .got.plt 0000000c 00491198 00491198 004a1198 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .got 00000028 004911a4 004911a4 004a11a4 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .pad 00000004 004911cc 004911cc 004a11cc 2**0
CONTENTS, ALLOC, LOAD, DATA
6 .bss 0000001c 004911d0 004911d0 004a11d0 2**2
ALLOC
7 .stack 00001000 004911f0 004911f0 004a11d0 2**0
ALLOC
8 .comment 0000001c 00000000 00000000 004a11d0 2**0
CONTENTS, READONLY
9 .ARM.attributes 0000002d 00000000 00000000 004a11ec 2**0
CONTENTS, READONLY
10 .debug_line 0000281b 00000000 00000000 004a1219 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_info 000066cb 00000000 00000000 004a3a34 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_abbrev 000013ea 00000000 00000000 004aa0ff 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_aranges 000001a8 00000000 00000000 004ab4f0 2**3
CONTENTS, READONLY, DEBUGGING
14 .debug_str 000019b4 00000000 00000000 004ab698 2**0
CONTENTS, READONLY, DEBUGGING
15 .debug_ranges 00000640 00000000 00000000 004ad050 2**3
CONTENTS, READONLY, DEBUGGING
16 .debug_frame 00001010 00000000 00000000 004ad690 2**2
CONTENTS, READONLY, DEBUGGING
17 .debug_loc 00003643 00000000 00000000 004ae6a0 2**0
CONTENTS, READONLY, DEBUGGING
Gregory
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
WARNING: multiple messages have this Message-ID (diff)
From: Gregory CLEMENT <gregory.clement@free-electrons.com>
To: Russell King - ARM Linux <linux@armlinux.org.uk>
Cc: Arnd Bergmann <arnd@arndb.de>,
Aaro Koskinen <aaro.koskinen@iki.fi>,
Robert Jarzmik <robert.jarzmik@free.fr>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
LKML <linux-kernel@vger.kernel.org>,
Andrea Adami <andrea.adami@gmail.com>,
Romain Izard <romain.izard.pro@gmail.com>,
Sven Schmidt <4sschmid@informatik.uni-hamburg.de>,
Petr Cvek <petrcvekcz@gmail.com>,
"linux-arm-kernel\@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH] ARM: add a private asm/unaligned.h
Date: Mon, 30 Oct 2017 17:04:37 +0100 [thread overview]
Message-ID: <877evc1v1m.fsf@free-electrons.com> (raw)
In-Reply-To: <20171030155511.GQ20805@n2100.armlinux.org.uk> (Russell King's message of "Mon, 30 Oct 2017 15:55:12 +0000")
Hi Russell,
On lun., oct. 30 2017, Russell King - ARM Linux <linux@armlinux.org.uk> wrote:
> On Mon, Oct 30, 2017 at 04:33:07PM +0100, Gregory CLEMENT wrote:
>> Humm no, actually it was with the wrong branch. If I have the patch
>> "ARM: verify size of zImage" then arch/arm/boot/compressed/vmlinux is
>> not generated.
>>
>> But if I remove this patch then I can generate this file and so:
>> arm-linux-gnueabi-readelf -S ../build/arch/arm/boot/compressed/vmlinux
>> There are 22 section headers, starting at offset 0x4b402c:
>>
>> Section Headers:
>> [Nr] Name Type Addr Off Size ES Flg Lk Inf Al
>> [ 0] NULL 00000000 000000 000000 00 0 0 0
>> [ 1] .text PROGBITS 00000000 010000 005ef8 00 AX 0 0 32
>> [ 2] .rodata PROGBITS 00005ef8 015ef8 000d4c 00 A 0 0 4
>> [ 3] .piggydata PROGBITS 00006c44 016c44 48a552 00 A 0 0 1
>> [ 4] .got.plt PROGBITS 00491198 4a1198 00000c 04 WA 0 0 4
>> [ 5] .got PROGBITS 004911a4 4a11a4 000028 00 WA 0 0 4
>> [ 6] .pad PROGBITS 004911cc 4a11cc 000004 00 WA 0 0 1
>> [ 7] .bss NOBITS 004911d0 4a11d0 00001c 00 WA 0 0 4
>> [ 8] .stack NOBITS 004911f0 4a11d0 001000 00 WA 0 0 1
>> [ 9] .comment PROGBITS 00000000 4a11d0 00001c 01 MS 0 0 1
>> [10] .ARM.attributes ARM_ATTRIBUTES 00000000 4a11ec 00002d 00 0 0 1
>> [11] .debug_line PROGBITS 00000000 4a1219 00281b 00 0 0 1
>> [12] .debug_info PROGBITS 00000000 4a3a34 0066cb 00 0 0 1
>> [13] .debug_abbrev PROGBITS 00000000 4aa0ff 0013ea 00 0 0 1
>> [14] .debug_aranges PROGBITS 00000000 4ab4f0 0001a8 00 0 0 8
>> [15] .debug_str PROGBITS 00000000 4ab698 0019b4 01 MS 0 0 1
>> [16] .debug_ranges PROGBITS 00000000 4ad050 000640 00 0 0 8
>> [17] .debug_frame PROGBITS 00000000 4ad690 001010 00 0 0 4
>> [18] .debug_loc PROGBITS 00000000 4ae6a0 003643 00 0 0 1
>> [19] .symtab SYMTAB 00000000 4b1ce4 0015b0 10 20 225 4
>> [20] .strtab STRTAB 00000000 4b3294 000cc5 00 0 0 1
>> [21] .shstrtab STRTAB 00000000 4b3f59 0000d2 00 0 0 1
>
> I don't like readelf's output - please can you post the output of
> arm-linux-objdump -h ../build/arch/arm/boot/compressed/vmlinux
> instead.
Here it is:
arm-linux-gnueabi-objdump -h ../build/arch/arm/boot/compressed/vmlinux
../build/arch/arm/boot/compressed/vmlinux: file format elf32-littlearm
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00005ef8 00000000 00000000 00010000 2**5
CONTENTS, ALLOC, LOAD, READONLY, CODE
1 .rodata 00000d4c 00005ef8 00005ef8 00015ef8 2**2
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .piggydata 0048a552 00006c44 00006c44 00016c44 2**0
CONTENTS, ALLOC, LOAD, READONLY, DATA
3 .got.plt 0000000c 00491198 00491198 004a1198 2**2
CONTENTS, ALLOC, LOAD, DATA
4 .got 00000028 004911a4 004911a4 004a11a4 2**2
CONTENTS, ALLOC, LOAD, DATA
5 .pad 00000004 004911cc 004911cc 004a11cc 2**0
CONTENTS, ALLOC, LOAD, DATA
6 .bss 0000001c 004911d0 004911d0 004a11d0 2**2
ALLOC
7 .stack 00001000 004911f0 004911f0 004a11d0 2**0
ALLOC
8 .comment 0000001c 00000000 00000000 004a11d0 2**0
CONTENTS, READONLY
9 .ARM.attributes 0000002d 00000000 00000000 004a11ec 2**0
CONTENTS, READONLY
10 .debug_line 0000281b 00000000 00000000 004a1219 2**0
CONTENTS, READONLY, DEBUGGING
11 .debug_info 000066cb 00000000 00000000 004a3a34 2**0
CONTENTS, READONLY, DEBUGGING
12 .debug_abbrev 000013ea 00000000 00000000 004aa0ff 2**0
CONTENTS, READONLY, DEBUGGING
13 .debug_aranges 000001a8 00000000 00000000 004ab4f0 2**3
CONTENTS, READONLY, DEBUGGING
14 .debug_str 000019b4 00000000 00000000 004ab698 2**0
CONTENTS, READONLY, DEBUGGING
15 .debug_ranges 00000640 00000000 00000000 004ad050 2**3
CONTENTS, READONLY, DEBUGGING
16 .debug_frame 00001010 00000000 00000000 004ad690 2**2
CONTENTS, READONLY, DEBUGGING
17 .debug_loc 00003643 00000000 00000000 004ae6a0 2**0
CONTENTS, READONLY, DEBUGGING
Gregory
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2017-10-30 16:04 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-20 20:01 [PATCH] ARM: add a private asm/unaligned.h Arnd Bergmann
2017-10-20 20:01 ` Arnd Bergmann
2017-10-20 20:22 ` Ard Biesheuvel
2017-10-20 20:22 ` Ard Biesheuvel
2017-10-23 15:04 ` Romain Izard
2017-10-23 15:04 ` Romain Izard
2017-10-27 15:19 ` Gregory CLEMENT
2017-10-27 15:19 ` Gregory CLEMENT
2017-10-27 15:27 ` Russell King - ARM Linux
2017-10-27 15:27 ` Russell King - ARM Linux
2017-10-30 13:48 ` Gregory CLEMENT
2017-10-30 13:48 ` Gregory CLEMENT
2017-10-30 14:55 ` Ard Biesheuvel
2017-10-30 14:55 ` Ard Biesheuvel
2017-10-30 15:05 ` Gregory CLEMENT
2017-10-30 15:05 ` Gregory CLEMENT
2017-10-30 15:07 ` Ard Biesheuvel
2017-10-30 15:07 ` Ard Biesheuvel
2017-10-30 15:09 ` Gregory CLEMENT
2017-10-30 15:09 ` Gregory CLEMENT
2017-10-30 15:20 ` Ard Biesheuvel
2017-10-30 15:20 ` Ard Biesheuvel
2017-10-30 15:33 ` Gregory CLEMENT
2017-10-30 15:33 ` Gregory CLEMENT
2017-10-30 15:35 ` Ard Biesheuvel
2017-10-30 15:35 ` Ard Biesheuvel
2017-10-30 15:40 ` Gregory CLEMENT
2017-10-30 15:40 ` Gregory CLEMENT
2017-10-30 16:59 ` Russell King - ARM Linux
2017-10-30 16:59 ` Russell King - ARM Linux
2017-10-30 15:55 ` Russell King - ARM Linux
2017-10-30 15:55 ` Russell King - ARM Linux
2017-10-30 16:04 ` Gregory CLEMENT [this message]
2017-10-30 16:04 ` Gregory CLEMENT
2017-10-30 15:48 ` Russell King - ARM Linux
2017-10-30 15:48 ` Russell King - ARM Linux
2017-10-30 16:01 ` Gregory CLEMENT
2017-10-30 16:12 ` Russell King - ARM Linux
2017-10-30 16:12 ` Russell King - ARM Linux
2017-10-30 16:24 ` Gregory CLEMENT
2017-10-30 16:24 ` Gregory CLEMENT
2017-10-30 16:38 ` Russell King - ARM Linux
2017-10-30 16:38 ` Russell King - ARM Linux
2017-10-31 12:47 ` Russell King - ARM Linux
2017-10-31 12:47 ` Russell King - ARM Linux
2017-10-31 12:57 ` Ard Biesheuvel
2017-10-31 12:57 ` Ard Biesheuvel
2017-10-31 13:22 ` Gregory CLEMENT
2017-10-31 13:22 ` Gregory CLEMENT
2017-11-01 15:57 ` Ard Biesheuvel
2017-11-01 15:57 ` Ard Biesheuvel
2017-11-01 18:00 ` Russell King - ARM Linux
2017-11-01 18:00 ` Russell King - ARM Linux
2017-11-01 18:02 ` Ard Biesheuvel
2017-11-01 18:02 ` Ard Biesheuvel
2017-11-01 18:11 ` Russell King - ARM Linux
2017-11-01 18:11 ` Russell King - ARM Linux
2017-11-01 18:20 ` Ard Biesheuvel
2017-11-01 18:20 ` Ard Biesheuvel
2017-11-01 19:10 ` Russell King - ARM Linux
2017-11-01 19:10 ` Russell King - ARM Linux
2017-10-30 15:09 ` Arnd Bergmann
2017-10-30 15:09 ` Arnd Bergmann
2017-10-30 15:50 ` Russell King - ARM Linux
2017-10-30 15:50 ` Russell King - ARM Linux
2017-10-30 17:01 ` Arnd Bergmann
2017-10-30 17:01 ` Arnd Bergmann
2017-10-30 17:13 ` Russell King - ARM Linux
2017-10-30 17:13 ` Russell King - ARM Linux
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877evc1v1m.fsf@free-electrons.com \
--to=gregory.clement@free-electrons.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.