public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: "Vincent Rivière" <vincent.riviere@freesbee.fr>
To: binutils@sourceware.org
Subject: gas section alignment less than 4 bytes
Date: Mon, 3 Jul 2023 22:56:10 +0200	[thread overview]
Message-ID: <abee4dee-c897-4107-9e78-4f7b4ebb8cce@freesbee.fr> (raw)

Hi,

I wonder if there is a way for gas to generate an object with section 
alignment less than 4.

$ echo nop | m68k-elf-as -o a.o

$ m68k-elf-objdump -h a.o

a.o:     file format elf32-m68k

Sections:
Idx Name          Size      VMA       LMA       File off  Algn
   0 .text         00000002  00000000  00000000  00000034  2**2
                   CONTENTS, ALLOC, LOAD, READONLY, CODE
   1 .data         00000000  00000000  00000000  00000038  2**2
                   CONTENTS, ALLOC, LOAD, DATA
   2 .bss          00000000  00000000  00000000  00000038  2**2

I would like to get Algn = 2**1 for all sections.
Is it possible to achieve that? How?

Cheers,

-- 
Vincent Rivière

             reply	other threads:[~2023-07-03 20:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-03 20:56 Vincent Rivière [this message]
2023-07-03 21:03 ` Andreas Schwab
2023-07-04 11:08 ` Nick Clifton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=abee4dee-c897-4107-9e78-4f7b4ebb8cce@freesbee.fr \
    --to=vincent.riviere@freesbee.fr \
    --cc=binutils@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).