gas section alignment less than 4 bytes
Vincent Rivière
vincent.riviere@freesbee.fr
Mon Jul 3 20:56:10 GMT 2023
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
More information about the Binutils
mailing list