diff options
author | Nick Clifton <nickc@redhat.com> | 2016-06-27 13:49:09 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2016-06-27 13:51:06 +0100 |
commit | 2edb36e77f3ff468eac2b2c8954e9c031148e724 (patch) | |
tree | f408bcf2dfebe45d565e12499f25b7dcc3c0f2f2 /gas/as.h | |
parent | c9301e31817019c38ab52da0e72fa1e3bf75332c (diff) | |
download | gdb-2edb36e77f3ff468eac2b2c8954e9c031148e724.zip gdb-2edb36e77f3ff468eac2b2c8954e9c031148e724.tar.gz gdb-2edb36e77f3ff468eac2b2c8954e9c031148e724.tar.bz2 |
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.
Diffstat (limited to 'gas/as.h')
-rw-r--r-- | gas/as.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -76,8 +76,8 @@ 150 isn't special; it's just an arbitrary non-ASCII char value. */ #define OPTION_STD_BASE 150 /* The first getopt value for machine-dependent long options. - 190 gives the standard options room to grow. */ -#define OPTION_MD_BASE 190 + 290 gives the standard options room to grow. */ +#define OPTION_MD_BASE 290 #ifdef DEBUG #undef NDEBUG @@ -377,6 +377,8 @@ COMMON int need_pass_2; leave lots of padding. */ COMMON int linkrelax; +COMMON int do_not_pad_sections_to_alignment; + /* TRUE if we should produce a listing. */ extern int listing; |