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

Sam James <sam at gentoo dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #16007|0                           |1
        is obsolete|                            |

--- Comment #3 from Sam James <sam at gentoo dot org> ---
Created attachment 16008
  --> https://sourceware.org/bugzilla/attachment.cgi?id=16008&action=edit
bfd-lfo.tar.xz

Done.

With binutils-2.44:
```
$ ./test.sh
+ gcc -O2 -flto -c libkmod.i -o libkmod.o
+ gcc -O2 -flto -c hash.i -o hash.o
+ gcc -O2 -flto -c util.i -o util.o
+ ar cr libshared.a hash.o util.o
+ ar cr libkmod-internal.a libkmod.o hash.o util.o
+ gcc -Wl,--no-undefined -shared -o kmod lsmod.i static-nodes.i libshared.a
libkmod-internal.a z.i -B/usr/x86_64-pc-linux-gnu/binutils-bin/2.44
```

With trunk:
```
$ ./test.sh
+ gcc -O2 -flto -c libkmod.i -o libkmod.o
+ gcc -O2 -flto -c hash.i -o hash.o
+ gcc -O2 -flto -c util.i -o util.o
+ ar cr libshared.a hash.o util.o
+ ar cr libkmod-internal.a libkmod.o hash.o util.o
+ gcc -Wl,--no-undefined -shared -o kmod lsmod.i static-nodes.i libshared.a
libkmod-internal.a z.i
/usr/lib/gcc/x86_64-pc-linux-gnu/15/../../../../x86_64-pc-linux-gnu/bin/ld:
/tmp/ccqb5Jli.ltrans0.ltrans.o: in function `kmod_new':
<artificial>:(.text+0x17): undefined reference to `hash_new'
collect2: error: ld returned 1 exit status
```

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

Reply via email to