[PATCH 2/2] gas: consistently emit diagnostics for non-zero data emission to .bss/.struct
Alan Modra
amodra@gmail.com
Mon Dec 7 22:37:00 GMT 2015
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
More information about the Binutils
mailing list