From 2edb36e77f3ff468eac2b2c8954e9c031148e724 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 27 Jun 2016 13:49:09 +0100 Subject: 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/as.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gas/as.h') diff --git a/gas/as.h b/gas/as.h index 51e16f1..169c714 100644 --- a/gas/as.h +++ b/gas/as.h @@ -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; -- cgit v1.1