On Tue, Sep 9, 2014 at 10:06 PM, Andreas Schwab wrote:
> Kito Cheng writes:
>
>> .align 2
>> bufbuf.4078:
>> .space 8
>> ...
>> .ident "GCC: (GNU) 5.0.0 20140828 (experimental)"
>>
>>
>> And then the size info will missing:
>>
>> $ arm-none-eabi-objdump ./foo.o -t
>>
>> ./foo.o: file format
Kito Cheng writes:
> .align 2
> bufbuf.4078:
> .space 8
> ...
> .ident "GCC: (GNU) 5.0.0 20140828 (experimental)"
>
>
> And then the size info will missing:
>
> $ arm-none-eabi-objdump ./foo.o -t
>
> ./foo.o: file format elf32-littlearm
>
> SYMBOL TABLE:
> ldf *ABS* zoo
Richard Earnshaw writes:
> .space puts space in the current section, I believe. .comm and .lcomm
> put the space in the common section; that's very different behaviour.
The local common section is the .bss section.
Andreas.
--
Andreas Schwab, SUSE Labs, sch...@suse.de
GPG Key fingerprint = 0
On 09/09/14 14:32, Ramana Radhakrishnan wrote:
> On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng wrote:
>> Hi all:
>>
>> In arm-*-elf target some variable will missing size directive,
>>
>> for example:
>>
>> foo.c:
>>
>> void foo (void) {
>> static char bufbuf[8];
>> }
>>
>> $ arm-none-eabi-gcc ./fo
On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng wrote:
> Hi all:
>
> In arm-*-elf target some variable will missing size directive,
>
> for example:
>
> foo.c:
>
> void foo (void) {
> static char bufbuf[8];
> }
>
> $ arm-none-eabi-gcc ./foo.c -S -o -
>
> ...
> .align 2
> bufbuf.4078:
> .space 8
Th
ping!
On Mon, Sep 1, 2014 at 11:30 AM, Kito Cheng wrote:
> Hi all:
>
> In arm-*-elf target some variable will missing size directive,
>
> for example:
>
> foo.c:
>
> void foo (void) {
> static char bufbuf[8];
> }
>
> $ arm-none-eabi-gcc ./foo.c -S -o -
>
> ...
> .align 2
> bufbuf.4078:
> .spac
tive.
From e0034653a4d457708fc4d858ea20fab70a42d798 Mon Sep 17 00:00:00 2001
From: Kito Cheng
Date: Mon, 1 Sep 2014 11:19:13 +0800
Subject: [PATCH] Add missing size directive for arm-elf
ChangeLog
2014-09-01 Kito Cheng
* config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Add size directive.
---
gcc/config/arm/unknown