[Bug binutils/27268] mingw-w64 fails with dwarf5

2021-02-17 Thread ssbssa at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27268

--- Comment #2 from Hannes Domani  ---
Looks like adding only .debug_loclists is not enough.
For another example I also needed to add .debug_rnglists.

That makes me think that probably all DWARF 5 debug sections listed here are
necessary:
https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=ld/scripttempl/DWARF.sc;hb=HEAD

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


[Bug ld/27425] erroneous __ImageBase relocation using Microsoft COFF .OBJ linked to .ELF x86_64

2021-02-17 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27425

--- Comment #2 from Kilian Kegel  ---
Hi H.J.

your solution is perfect for part 1 of the issue.
Additional it also fixes the entries for exception handling
in the .pdata section - perfect.

I will create a separate bug for part 2 of the problem.

Thanks a lot.

Kilian

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


[Bug ld/27432] New: erroneous symbol offsets taken with __ImageBase relocation using Microsoft COFF .OBJ linked to

2021-02-17 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27432

Bug ID: 27432
   Summary: erroneous symbol offsets taken with __ImageBase
relocation using Microsoft COFF .OBJ linked to
   Product: binutils
   Version: 2.36.1
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: minnowware at hotmail dot com
  Target Milestone: ---

Hi H.J.


the symbol addresses taken for __ImageBase addressing scheme are wrong.
RIP relative addresses taken from the same section instead are correct.

https://github.com/KilianKegel/GNU-ld-for-MicrosoftCOFF-to-LinuxELF#addr32nb-offset-miscalculation

I would really appreciate if you could fix this issue. 

Best regards,
Kilian

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


[Bug ld/27432] erroneous symbol offsets taken with __ImageBase relocation using Microsoft COFF .OBJ linked to

2021-02-17 Thread minnowware at hotmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27432

--- Comment #1 from Kilian Kegel  ---
Created attachment 13230
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13230&action=edit
screenshot wrong offset calculation

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


[Bug ld/27200] Bad RiscV64 ELF header flag using ld -b binary

2021-02-17 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=27200

Nelson Chu  changed:

   What|Removed |Added

 CC||nelsonc1225 at sourceware dot 
org
 Status|ASSIGNED|RESOLVED
 Resolution|--- |FIXED

--- Comment #18 from Nelson Chu  ---
Mark as resolved/fixed as it is fixed.

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


[Bug ld/24685] [RISCV] R_RISCV_CALL_PLT should not create a canonical PLT in -no-pie mode

2021-02-17 Thread nelsonc1225 at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=24685

Nelson Chu  changed:

   What|Removed |Added

 CC||nelsonc1225 at sourceware dot 
org

--- Comment #4 from Nelson Chu  ---
I can get the expected results when using the current mainline binutils.

$ riscv64-unknown-linux-gnu-gcc -fuse-ld=bfd -fpie -pie a.c -o a &&
riscv64-unknown-linux-gnu-readelf -W --dyn-s a | grep puts
 4:  0 FUNCGLOBAL DEFAULT  UND puts@GLIBC_2.27 (2)
$ riscv64-unknown-linux-gnu-gcc -fuse-ld=bfd -fpie -no-pie a.c -o a &&
riscv64-unknown-linux-gnu-readelf -W --dyn-s a | grep puts
 1: 00010400 0 FUNCGLOBAL DEFAULT  UND puts@GLIBC_2.27 (2)

I believe the commit 3b1450b38c644f99aa2e211747b428b9f8d15cca fix it.

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