bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/32435] New: [2.44 Regression] gas produces unaligned sections o


From: doko at debian dot org
Subject: [Bug gas/32435] New: [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf
Date: Mon, 09 Dec 2024 11:25:51 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=32435

            Bug ID: 32435
           Summary: [2.44 Regression] gas produces unaligned sections on
                    arm-linux-gnueabihf
           Product: binutils
           Version: 2.44 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: doko at debian dot org
  Target Milestone: ---

Created attachment 15828
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15828&action=edit
test case

seen on the trunk, not with 2.43.1 on arm-linux-gnueabihf. The linux build
fails with a bus error during the modpost call. The machine that it is run on
is running an aarch64-linux-gnu kernel.

It looks like the modules are not correctly assembled, resulting in unaligned
file offsets of the sections, attaching here an objdump -h diff for a modules
assemled with gas 2.43.1, and one with gas from the trunk:

$ diff -u pinctrl-cy8c95x0-o.dump pinctrl-cy8c95x0-p.o.dump
--- pinctrl-cy8c95x0-o.dump     2024-12-09 12:12:44.065133391 +0100
+++ pinctrl-cy8c95x0-p.o.dump   2024-12-09 12:13:08.729490264 +0100
@@ -1,5 +1,5 @@

-pinctrl-cy8c95x0-o.o:     file format elf32-littlearm
+pinctrl-cy8c95x0-p.o:     file format elf32-littlearm

 Sections:
 Idx Name          Size      VMA       LMA       File off  Algn
@@ -7,25 +7,25 @@
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
   1 .data         00000103  00000000  00000000  00002494  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, DATA
-  2 .bss          00000000  00000000  00000000  00002598  2**2
+  2 .bss          00000000  00000000  00000000  00002597  2**2
                   ALLOC
-  3 .rodata.str1.4 00000449  00000000  00000000  00002598  2**2
+  3 .rodata.str1.4 00000449  00000000  00000000  00002597  2**2
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
-  4 .init.text    00000038  00000000  00000000  000029e4  2**2
+  4 .init.text    00000038  00000000  00000000  000029e0  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
-  5 .rodata       00000c00  00000000  00000000  00002a1c  2**2
+  5 .rodata       00000c00  00000000  00000000  00002a18  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, DATA
-  6 .exit.text    00000028  00000000  00000000  0000361c  2**2
+  6 .exit.text    00000028  00000000  00000000  00003618  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
-  7 .exit.data    00000004  00000000  00000000  00003644  2**2
+  7 .exit.data    00000004  00000000  00000000  00003640  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, DATA
-  8 .init.data    00000004  00000000  00000000  00003648  2**2
+  8 .init.data    00000004  00000000  00000000  00003644  2**2
                   CONTENTS, ALLOC, LOAD, RELOC, DATA
-  9 .modinfo      000000a0  00000000  00000000  0000364c  2**0
+  9 .modinfo      000000a0  00000000  00000000  00003648  2**0
                   CONTENTS, ALLOC, LOAD, READONLY, DATA
- 10 .comment      00000026  00000000  00000000  000036ec  2**0
+ 10 .comment      00000026  00000000  00000000  000036e8  2**0
                   CONTENTS, READONLY
- 11 .note.GNU-stack 00000000  00000000  00000000  00003712  2**0
+ 11 .note.GNU-stack 00000000  00000000  00000000  0000370e  2**0
                   CONTENTS, READONLY
- 12 .ARM.attributes 0000002f  00000000  00000000  00003712  2**0
+ 12 .ARM.attributes 0000002f  00000000  00000000  0000370e  2**0
                   CONTENTS, READONLY

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]