bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/30358] bfd very slow (> 4 minutes) to link busybox with -Wl,--so


From: sam at gentoo dot org
Subject: [Bug ld/30358] bfd very slow (> 4 minutes) to link busybox with -Wl,--sort-section,alignment
Date: Sat, 15 Apr 2023 04:49:45 +0000

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

--- Comment #6 from Sam James <sam at gentoo dot org> ---
If I attach gdb after it's been running for a while:
```
0x000055af4c8e93c1 in compare_section (bsec=<optimized out>, asec=<optimized
out>, sort=<optimized out>) at ../bfd/bfd.h:1115
1115      return sec->name;
(gdb) bt
#0  0x000055af4c8e93c1 in compare_section (bsec=<optimized out>,
asec=<optimized out>, sort=<optimized out>) at ../bfd/bfd.h:1115
#1  wild_sort (section=0x55af6efa7c58, file=0x55af6ef3fc30, sec=0x55af4ddd2d20,
wild=0x55af4ddd28a0) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:652
#2  output_section_callback_sort (ptr=0x55af4ddd28a0, sec=0x55af4ddd2d20,
section=0x55af6efa7c58, file=0x55af6ef3fc30, output=<optimized out>)
    at /usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:685
#3  0x000055af4c8dd995 in walk_wild (s=0x55af4ddd28a0, callback=0x55af4c8e92f0
<output_section_callback_sort>, data=0x55af4ddd18f0) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:979
#4  0x000055af4c8ddc3e in wild (target=<optimized out>, output=<optimized out>,
s=0x55af4ddd28a0) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:3052
#5  map_input_to_output_sections.isra.0 (s=0x55af4ddd28a0,
os=os@entry=0x55af4ddd18f0, target=<optimized out>) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:4076
#6  0x000055af4c8ddb81 in map_input_to_output_sections.isra.0
(s=0x55af4ddd18f0, os=0x0, target=<optimized out>) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:4094
#7  0x000055af4c8dadb1 in lang_process () at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldlang.c:8158
#8  0x000055af4c8e185a in main (argc=<optimized out>, argv=<optimized out>) at
/usr/src/debug/sys-devel/binutils-2.40-r4/binutils-2.40/ld/ldmain.c:504
(gdb)
```

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