]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: pe: Make archive member file extension comparisons case insensitive when cross...
authorMartin Storsjö <martin@martin.st>
Mon, 27 Sep 2021 08:20:24 +0000 (11:20 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 24 Aug 2022 20:18:47 +0000 (23:18 +0300)
commitb53b12c8e86bb30003f7dd644638db770127e689
tree0ab3fb375c322f1e9d14ba1f7f80f0023d1b29b0
parenta37854f9162fac592b669eda53f465fc190c9341
ld: pe: Make archive member file extension comparisons case insensitive when cross compiling too

On Windows, filename_cmp is case insensitive, but when cross compiling
with libraries that may contain members with uppercase file names, we
should keep those comparisons case insensitive when running the build
tools on other OSes too.

Also make the check for .def consistent with the other ones, fixing
out of bounds reads if file names are shorter than 4 characters.
ld/emultempl/pe.em
ld/emultempl/pep.em