bug-binutils
[Top][All Lists]
Advanced

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

[Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm


From: sam at gentoo dot org
Subject: [Bug gas/32435] [2.44 Regression] gas produces unaligned sections on arm-linux-gnueabihf for kernel build
Date: Mon, 23 Dec 2024 01:05:49 +0000

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

--- Comment #9 from Sam James <sam at gentoo dot org> ---
It works OK if modpost is built with -O0 or -O1.

With -O2:
```
Starting program: /root/git/linux/scripts/mod/modpost -M -o Module.symvers -n
-T modules.order vmlinux.o
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGBUS, Bus error.
0x0040ada8 in do_pci_entry (mod=0x58dd48, symval=0xf7468ffa) at
scripts/mod/file2alias.c:431
431             DEF_FIELD(symval, pci_device_id, class_mask);
(gdb) bt
#0  0x0040ada8 in do_pci_entry (mod=0x58dd48, symval=0xf7468ffa) at
scripts/mod/file2alias.c:431
#1  0x0040b86c in do_table (name=0xf7468ffc "", symval=0xffffffff,
size=<optimized out>, id_size=32, device_id=<optimized out>,
do_entry=<optimized out>, mod=0x58dd48)
    at scripts/mod/file2alias.c:1416
#2  handle_moddevtable (mod=0x58dd48, info=<optimized out>, sym=0xf7d23c6c,
symname=0xf7d41d8d "__mod_device_table__pci__nouveau_drm_pci_table") at
scripts/mod/file2alias.c:1521
#3  0x0040417c in read_symbols (modname=modname@entry=0xfffedf24
"drivers/gpu/drm/nouveau/nouveau.o") at scripts/mod/modpost.c:1592
#4  0x00405118 in read_symbols_from_files (filename=filename@entry=0xfffef2df
"modules.order") at scripts/mod/modpost.c:1631
#5  0x00401970 in main (argc=<optimized out>, argv=0x0) at
scripts/mod/modpost.c:2195
```

```
(gdb) x/10i $pc
=> 0x40ada8 <do_pci_entry+80>:  ldm     r5, {r5, r9, r10}
   0x40adac <do_pci_entry+84>:  ldr     r0, [r3, r0]
   0x40adb0 <do_pci_entry+88>:  ldr     r3, [r3, r12]
   0x40adb4 <do_pci_entry+92>:  ldr     r2, [r1, #28]
   0x40adb8 <do_pci_entry+96>:  ldrb    r0, [r0]
   0x40adbc <do_pci_entry+100>: ldrb    r3, [r3]
   0x40adc0 <do_pci_entry+104>: ldr     r6, [r1, #8]
   0x40adc4 <do_pci_entry+108>: cmp     r0, r3
   0x40adc8 <do_pci_entry+112>: beq     0x40ade8 <do_pci_entry+144>
   0x40adcc <do_pci_entry+116>: rev     r8, r8
```

-- 
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]