crosstool-ng/packages/binutils/2.37
Alexey Brodkin 5d903ccee9 binutils-2.37: Remove obsolete ld_makefile patch
The patch in question was first introduced in [1] as a copy-paste
from OpenEmbedded [2], where it seems to exist on the first ever SVN commit.
Later it was removed from OE in [3] on switching to Binutils 2.25.

It's not clear why it was introduced in the first place and why it
got removed later. But given in OE/Yocto it was missing since 2015
and never was reverted, I guess it is not strictly necessary
at least with recent Binutils. So it's an extra patch which adds
questionable value. Moreover it gets in the way if one wants to
merge a couple of separate toolchains like little- & big-enadian
so that "bin" & "lib" folder contain all the binaries and libs
simultaneously. W/ that patch in place ldscripts won't co-exist,
but instead the latest set of scripts will override all the rest.

And in case of aforementioned example w/ merged little- &
big-endian toolchains BE ldscripts will override LE ones leading
to a funny behavior: on linking w/o explicitly set endianess
(via "-EL" or "-EB") default linker scripts won't match the GCC driver
used:
------------------------------->8---------------------------
$ arc-elf32-gcc test.c -Wl,-marcv2elfx

...

.../bin/../lib/gcc/arc-snps-elf/11.2.0/../../../../arc-snps-elf/bin/ld: .../bin/../lib/gcc/arc-snps-elf/11.2.0/../../../../arc-snps-elf/lib/crt0.o: compiled for a little endian system and target is big endian
.../bin/../lib/gcc/arc-snps-elf/11.2.0/../../../../arc-snps-elf/bin/ld: failed to merge target specific data of file .../bin/../lib/gcc/arc-snps-elf/11.2.0/../../../../arc-snps-elf/lib/crt0.o
.../bin/../lib/gcc/arc-snps-elf/11.2.0/../../../../arc-snps-elf/bin/ld: .../bin/../lib/gcc/arc-snps-elf/11.2.0/crti.o: compiled for a little endian system and target is big endian

...
------------------------------->8---------------------------

[1] cfbcdd3786
[2] 4b46c1f6e8
[3] 3c7fe424f8

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2021-10-10 04:55:24 -07:00
..
0000-sh-conf.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0002-check_ldrunpath_length.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0003-MinGW-w64-winpthreads-doesnt-have-pthread_mutexattr_settype.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0004-Dont-link-to-libfl-as-its-unnecessary.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0005-Darwin-gold-binary-cc-include-string-not-cstring.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0006-Darwin-Two-fixes-from-Android-NDK-PTHREAD_ONCE_INIT-wcsncasecmp.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0007-sysroot.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0008-poison-system-directories.patch binutils: add version 2.37 2021-08-16 10:22:50 -07:00
0009-arc-Fix-potential-invalid-pointer-access-when-fixing.patch binutils 2.37: arc: Fix for 32-bit hosts 2021-09-13 01:57:39 -07:00
0010-change-uint-to-unsigned.patch binutils: Add MinGW build fix from 2.37 branch 2021-09-14 12:28:59 +03:00
chksum binutils: add version 2.37 2021-08-16 10:22:50 -07:00
version.desc binutils: add version 2.37 2021-08-16 10:22:50 -07:00