Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Ramana Radhakrishnan
On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng kito.ch...@gmail.com 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

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Richard Earnshaw
On 09/09/14 14:32, Ramana Radhakrishnan wrote: On Mon, Sep 1, 2014 at 4:30 AM, Kito Cheng kito.ch...@gmail.com 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

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Andreas Schwab
Richard Earnshaw rearn...@arm.com 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

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Andreas Schwab
Kito Cheng kito.ch...@gmail.com 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*

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-09 Thread Kito Cheng
On Tue, Sep 9, 2014 at 10:06 PM, Andreas Schwab sch...@suse.de wrote: Kito Cheng kito.ch...@gmail.com 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

Re: [PATCH] Add missing size directive for arm-*-elf

2014-09-08 Thread Kito Cheng
ping! On Mon, Sep 1, 2014 at 11:30 AM, Kito Cheng kito.ch...@gmail.com 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:

[PATCH] Add missing size directive for arm-*-elf

2014-08-31 Thread Kito Cheng
e0034653a4d457708fc4d858ea20fab70a42d798 Mon Sep 17 00:00:00 2001 From: Kito Cheng kito.ch...@gmail.com Date: Mon, 1 Sep 2014 11:19:13 +0800 Subject: [PATCH] Add missing size directive for arm-elf ChangeLog 2014-09-01 Kito Cheng k...@0xlab.org * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Add size