[Bug gold/20805] gcc's ThreadSanitizer broken by gold

2016-11-12 Thread markus at trippelsdorf dot de
https://sourceware.org/bugzilla/show_bug.cgi?id=20805

Markus Trippelsdorf  changed:

   What|Removed |Added

   Attachment #9624|0   |1
is obsolete||

--- Comment #3 from Markus Trippelsdorf  ---
Created attachment 9626
  --> https://sourceware.org/bugzilla/attachment.cgi?id=9626&action=edit
new testcase

Here's a better testcase:

gcc -fuse-ld=bfd -shared tsan_rtl.o tsan_interceptors.o tsan_rtl_amd64.o
vs.
gcc -fuse-ld=gold -shared tsan_rtl.o tsan_interceptors.o tsan_rtl_amd64.o

Look at the disassembly of function _ZN6__tsan10InitializeEPNS_11ThreadStateE.

bfd: 
cur_thread()->ignore_interceptors++;
   2d4a3:   48 03 05 ce 67 25 00add0x2567ce(%rip),%rax#
283c78 <.got+0x1780> 

gold:
cur_thread()->ignore_interceptors++;
   2ed42:   66 66 48 e8 36 e4 ffdata16 data16 callq 2d180
<__tls_get_addr@plt>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/20811] New: strip not stripped in the dynamic table

2016-11-12 Thread rmbeer2 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20811

Bug ID: 20811
   Summary: strip not stripped in the dynamic table
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: rmbeer2 at gmail dot com
  Target Milestone: ---

I say about of 'strip -s'.

in the .dynamic of SHDR always have the pointer to SYMTAB(.symtab) and
STRTAB(.strtab), if access from .dynamic in ELF or _DYNAMIC[] in C++, this have
a old pointer that not have nothing in the memory, can produce a segmentation
of fault.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/20812] New: strip not stripped for -rdynamic/-Wl,--export-dynamic

2016-11-12 Thread rmbeer2 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20812

Bug ID: 20812
   Summary: strip not stripped for -rdynamic/-Wl,--export-dynamic
   Product: binutils
   Version: 2.27
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: rmbeer2 at gmail dot com
  Target Milestone: ---

i say about all of 'strip' command. I try any parameters of strip with the same
result.

If i compiling/linking with -Wl,--export-dynamic or/and -rdynamic parameters.
This add a symbol table in the section of the binary file (dynamic or
executable) that 'strip' not removed.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/20811] strip not stripped in the dynamic table

2016-11-12 Thread rmbeer2 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20811

rm beer  changed:

   What|Removed |Added

   Priority|P2  |P1

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils