]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gas/SH: respect --no-pad-sections
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:44 +0000 (16:00 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Oct 2025 14:00:44 +0000 (16:00 +0200)
This is once again just so the target won't need excluding in a
forthcoming new testcase, which requires no padding at the end of at
least some of the sections.

gas/config/tc-sh.h

index 1ed0f5e10883ce5f2c0f1737a80b509feab9431c..b91d0e1fd528d613c00dab8db55fb0dd6def1570 100644 (file)
@@ -138,7 +138,8 @@ extern void sh_frob_file (void);
 
 /* We align most sections to a 16 byte boundary.  */
 #define SUB_SEGMENT_ALIGN(SEG, FRCHAIN)                        \
-  (startswith (SEG_NAME (SEG), ".stabstr")             \
+  ((startswith (SEG_NAME (SEG), ".stabstr")            \
+    || do_not_pad_sections_to_alignment)               \
    ? 0                                                 \
    : ((startswith (SEG_NAME (SEG), ".stab")    \
        || strcmp (SEG_NAME (SEG), ".ctors") == 0       \