[Bug ld/29807] objcopy converts ELF relocatable object to PE that cause a ld segfault

2022-11-22 Thread stsp at users dot sourceforge.net
https://sourceware.org/bugzilla/show_bug.cgi?id=29807

--- Comment #8 from Stas Sergeev  ---
If only objcopy could also be fixed...
Is there now any other way to create
PE, rather than to install mingw?
Seems like w/o working objcopy, one
needs to install mingw just for that?

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


[Bug binutils/29785] memory bloat in version 2.39

2022-11-22 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29785

Alan Modra  changed:

   What|Removed |Added

   Last reconfirmed||2022-11-23
 Status|UNCONFIRMED |NEW
 Ever confirmed|0   |1

--- Comment #2 from Alan Modra  ---
Confirmed, one commit before b43771b045fb gives
$ time binutils/addr2line -a -e /tmp/mysqld.debug a77563
0x00a77563
binutils/addr2line: DWARF error: could not find variable specification at
offset 0xdfdf
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1dee4
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1def2
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de3a
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de48
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de56
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de2c
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1ded6
/usr/src/debug/mariadb-10.3.35-1.module+el8.6.0+1005+cdf19c22.x86_64/storage/innobase/ut/ut0wqueue.cc:162

real0m3.454s
user0m2.229s
sys 0m1.224s

commit b43771b045fb results:
$ time binutils/addr2line -a -e /tmp/mysqld.debug a77563
0x00a77563
binutils/addr2line: DWARF error: could not find variable specification at
offset 0xdfdf
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1dee4
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1def2
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de3a
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de48
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de56
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1de2c
binutils/addr2line: DWARF error: could not find variable specification at
offset 0x1ded6
/usr/src/debug/mariadb-10.3.35-1.module+el8.6.0+1005+cdf19c22.x86_64/storage/innobase/ut/ut0wqueue.cc:162

real0m46.450s
user0m43.108s
sys 0m3.336s

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


[Bug ld/29807] objcopy converts ELF relocatable object to PE that cause a ld segfault

2022-11-22 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29807

Alan Modra  changed:

   What|Removed |Added

 Resolution|--- |FIXED
 Status|ASSIGNED|RESOLVED

--- Comment #7 from Alan Modra  ---
Fixed

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


[Bug ld/29820] ld x86: -r should not define _TLS_MODULE_BASE_

2022-11-22 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29820

--- Comment #1 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by H.J. Lu :

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=04ad71937f28561ad5a2bbbc7e8f0af21e1019f8

commit 04ad71937f28561ad5a2bbbc7e8f0af21e1019f8
Author: H.J. Lu 
Date:   Tue Nov 22 13:58:47 2022 -0800

x86: Don't define _TLS_MODULE_BASE_ for ld -r

bfd/

PR ld/29820
* elfxx-x86.c (_bfd_x86_elf_always_size_sections): Don't define
 _TLS_MODULE_BASE_ for ld -r.

ld/

PR ld/29820
* testsuite/ld-x86-64/pr29820.d: New file.
* testsuite/ld-x86-64/pr29820.s: Likewise.
* testsuite/ld-x86-64/x86-64.ex: Run pr29820.

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


[Bug ld/29820] New: ld x86: -r should not define _TLS_MODULE_BASE_

2022-11-22 Thread i at maskray dot me
https://sourceware.org/bugzilla/show_bug.cgi?id=29820

Bug ID: 29820
   Summary: ld x86: -r should not define _TLS_MODULE_BASE_
   Product: binutils
   Version: unspecified
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: i at maskray dot me
  Target Milestone: ---

cat > a.s <:
  401000: 48 c7 c0 e0 ff ff ff  movq$-0x20, %rax  #
should be $0x0
  401007: 66 90 nop
  401009: 64 8b 90 e8 ff ff ff  movl%fs:-0x18(%rax), %edx
  401010: 64 03 90 ec ff ff ff  addl%fs:-0x14(%rax), %edx
  401017: 48 c7 c0 e0 ff ff ff  movq$-0x20, %rax  #
should be $0x0
  40101e: 66 90 nop
  401020: 64 8b 90 f8 ff ff ff  movl%fs:-0x8(%rax), %edx
  401027: 64 03 90 fc ff ff ff  addl%fs:-0x4(%rax), %edx

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


[Bug binutils/29819] New: ld testsuite of --version-script relies on -L option

2022-11-22 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=29819

Bug ID: 29819
   Summary: ld testsuite of --version-script relies on -L option
   Product: binutils
   Version: 2.40 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: mliska at suse dot cz
CC: nickc at sourceware dot org
  Target Milestone: ---

Apparently, as originally reported here:
https://github.com/rui314/mold/issues/822

ld.{bfd,gold} load version scripts from paths that are specified with -L
option:

$ mkdir aaa
$ echo "FOO {};" > aaa/aaa.map
$ echo '' | gcc-12 -Wl,--version-script=aaa.map -shared -fPIC -Laaa -x c -
(OK)

Is it something documented or specified? The same behavior is mimicked by lld.

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