Add command line option to stop the assembler from padding the end of sections to...
authorNick Clifton <nickc@redhat.com>
Mon, 27 Jun 2016 12:49:09 +0000 (13:49 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 27 Jun 2016 12:51:06 +0000 (13:51 +0100)
commit2edb36e77f3ff468eac2b2c8954e9c031148e724
treef408bcf2dfebe45d565e12499f25b7dcc3c0f2f2
parentc9301e31817019c38ab52da0e72fa1e3bf75332c
Add command line option to stop the assembler from padding the end of sections to their alignment boundary.

PR gas/20247
* as.h (do_not_pad_sections_to_alignment): New global variable.
* as.c (show_usage): Add --no-pad-sections.
(parse_args): Likewise.
* write.c (size_seg): Skip padding the end of the section if
requested from the command line.
(SUB_SEGMENT_ALIGN): Likewise.
* doc/as.texinfo: Document the new option.
* NEWS: Mention the new feature.
* testsuite/gas/elf/section11.s: New test.
* testsuite/gas/elf/section11.d: New test driver.
* testsuite/gas/elf/elf.exp: Run the new test.
gas/NEWS
gas/as.c
gas/as.h
gas/doc/as.texinfo
gas/testsuite/gas/elf/elf.exp
gas/testsuite/gas/elf/section11.d [new file with mode: 0644]
gas/testsuite/gas/elf/section11.s [new file with mode: 0644]
gas/write.c