This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH 2/2] gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
- From: Alan Modra <amodra at gmail dot com>
- To: Jan Beulich <JBeulich at suse dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 8 Dec 2015 09:07:06 +1030
- Subject: Re: [PATCH 2/2] gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
- Authentication-results: sourceware.org; auth=none
- References: <5665A8E202000078000BCAAF at prv-mh dot provo dot novell dot com>
On Mon, Dec 07, 2015 at 07:42:26AM -0700, Jan Beulich wrote:
> gas/
> 2015-12-07 Jan Beulich <jbeulich@suse.com>
>
> * read.c (in_bss): New.
> (do_align): Use it to also warn for non-zero fill in .bss.
> (do_org): Likewise.
> (s_space): Likewise.
> (s_fill): Error on bad use in .bss/.struct.
> (float_cons): Likewise.
> (emit_leb128_expr): Likewise.
> (emit_expr_with_reloc): Defer handling use inside .struct. Also
> error on non-zero item added to .bss.
> (stringer_append_char): Error on non-zero character.
>
> gas/
> 2015-12-07 Jan Beulich <jbeulich@suse.com>
>
> * gas/elf/bad-bss.d, gas/elf/bad-bss.err: New.
> * gas/elf/bss.d, gas/elf/bss.s: New.
> * gas/elf/elf.exp: Run new tests.
OK.
--
Alan Modra
Australia Development Lab, IBM