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

--- Comment #4 from kartatz <kartatz at amanoteam dot com> ---
I applied the patch to the binutils source distributed through the release
tarball (binutils-2.45.tar.xz), but the compilation failed with the following
error:

```
../../ld/ldfile.c:38:10: fatal error: ../gnulib/import/same-inode.h: No such
file or directory
   38 | #include "../gnulib/import/same-inode.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile:2329: ldfile.o] Error 1
```

It looks like the gnulib directory is not bundled by default with the binutils
releases. I cloned the git repository, applied the patch there, and was then
able to compile it:

```
$ echo "GROUP ( ./libfoo.so )" > libfoo.so
$ ld -L . -l foo main.o
ld: error: linker script '././libfoo.so' included recursively
```

Seems to be working properly now.

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

Reply via email to