bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28719] DWARF-5 section names in PE/PEP and weak symbols in


From: jojelino at gmail dot com
Subject: [Bug binutils/28719] DWARF-5 section names in PE/PEP and weak symbols in Cygwin
Date: Sun, 21 Aug 2022 02:18:16 +0000

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

--- Comment #9 from gee <jojelino at gmail dot com> ---
For someone who uses x86_64-w64-mingw32-binutils from cygwin, use below script
to patch the affected ld executable file. better than recompiling every stuff
to get your own.

###

f=/usr/bin/x86_64-w64-mingw32-ld.exe;for i in $(grep --text -b "===" $f| tail
+2|sed -e "s/:.*//"); do echo $i;sp="      "; echo "$sp"|dd if=/proc/self/fd/0
of=$f iflag=count_bytes,skip_bytes oflag=seek_bytes conv=notrunc seek=$i
count=${#sp};done
lines=$(grep --text -bP '(?:/\* Copyright|   
\*\(\.(?:z?debug_loclists|drectve)\))' $f|grep -E "Copyright" -A2|grep -E
"loclists"|sort -k2)
for i in $(echo "$lines"|head -6|sed -e "s/:.*//");do sp="                     
"; echo "$sp"|dd if=/proc/self/fd/0 of=$f iflag=count_bytes,skip_bytes
oflag=seek_bytes conv=notrunc seek=$i count=${#sp};done
for i in $(echo "$lines"|tail -6|sed -e "s/:.*//");do sp="                     
 "; echo "$sp"|dd if=/proc/self/fd/0 of=$f iflag=count_bytes,skip_bytes
oflag=seek_bytes conv=notrunc seek=$i count=${#sp};done

###

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