[Bug ld/25210] aarch64: -fix-cortex-a53-835769 --fix-cortex-a53-843419 lead to invalid operation

2020-01-18 Thread tnfchris at sourceware dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=25210

Tamar Christina  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution|--- |FIXED

--- Comment #7 from Tamar Christina  ---
Fixed on master and backported

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


Issue 19543 in oss-fuzz: binutils:fuzz_disassemble: Undefined-shift in aarch64_wide_constant_p

2020-01-18 Thread sheriff… via monorail

Updates:
Labels: -restrict-view-commit

Comment #3 on issue 19543 by sheriff...@chromium.org:  
binutils:fuzz_disassemble: Undefined-shift in aarch64_wide_constant_p

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19543#c3

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.


Issue 19531 in oss-fuzz: binutils:fuzz_disassemble: Undefined-shift in bpf_cgen_extract_operand

2020-01-18 Thread sheriff… via monorail

Updates:
Labels: -restrict-view-commit

Comment #3 on issue 19531 by sheriff...@chromium.org:  
binutils:fuzz_disassemble: Undefined-shift in bpf_cgen_extract_operand

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19531#c3

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.


Issue 19529 in oss-fuzz: binutils:fuzz_disassemble: Undefined-shift in print_instruction

2020-01-18 Thread sheriff… via monorail

Updates:
Labels: -restrict-view-commit

Comment #4 on issue 19529 by sheriff...@chromium.org:  
binutils:fuzz_disassemble: Undefined-shift in print_instruction

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19529#c4

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.


Issue 19532 in oss-fuzz: binutils:fuzz_disassemble: Undefined-shift in nds32_mask_opcode

2020-01-18 Thread sheriff… via monorail

Updates:
Labels: -restrict-view-commit

Comment #3 on issue 19532 by sheriff...@chromium.org:  
binutils:fuzz_disassemble: Undefined-shift in nds32_mask_opcode

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19532#c3

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.


Issue 19584 in oss-fuzz: binutils:fuzz_disassemble: Undefined-shift in print_insn_visium

2020-01-18 Thread sheriff… via monorail

Updates:
Labels: -restrict-view-commit

Comment #2 on issue 19584 by sheriff...@chromium.org:  
binutils:fuzz_disassemble: Undefined-shift in print_insn_visium

https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=19584#c2

This bug has been fixed for 30 days. It has been opened to the public.

- Your friendly Sheriffbot

--
You received this message because:
  1. You were specifically CC'd on the issue

You may adjust your notification preferences at:
https://bugs.chromium.org/hosting/settings

Reply to this email to add a comment.


[Bug ld/25416] New: TLSDESC relaxation doesn

2020-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25416

Bug ID: 25416
   Summary: TLSDESC relaxation doesn
   Product: binutils
   Version: 2.34 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: ld
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
Target: x86-64

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


[Bug ld/25416] TLSDESC relaxation doesn't work for x32

2020-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25416

H.J. Lu  changed:

   What|Removed |Added

Summary|TLSDESC relaxation doesn|TLSDESC relaxation doesn't
   ||work for x32

--- Comment #1 from H.J. Lu  ---
For X32, TLSDESC generates

1. -maddress-mode=short

lea foo@TLSDESC(%rip), %eax
call*foo@TLSCALL(%eax)

2. -maddress-mode=long

lea foo@TLSDESC(%rip), %rax
call*foo@TLSCALL(%rax)

Currently, I got

[hjl@gnu-cfl-2 tls-x32]$ cat main.c
#include 
#include 

__thread int bar = 301;

extern int *test1 (int);
extern int *test2 (int);

int
main ()
{
  int *p;
  p = test1 (30);
  if (*p != 30)
abort ();
  *p = 40;
  test1 (40);
  p = test2 (301);
  if (*p != 301)
abort ();
  if (p != &bar)
abort ();
  *p = 40;
  test2 (40);
  puts ("PASS");
  return 0;
}
[hjl@gnu-cfl-2 tls-x32]$ cat tlsdes.S
.text
.p2align 4
.globl  test1
.type   test1, @function
test1:
.cfi_startproc
subl$8, %esp
.cfi_def_cfa_offset 16
lea foo@TLSDESC(%rip), %eax
call*foo@TLSCALL(%eax)
addl%fs:0, %eax
cmpl%edi, (%eax)
jne .L5
addl$8, %esp
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L5:
.cfi_restore_state
callabort@PLT
.cfi_endproc
.size   test1, .-test1
.p2align 4
.globl  test2
.type   test2, @function
test2:
.cfi_startproc
subl$8, %esp
.cfi_def_cfa_offset 16
lea bar@TLSDESC(%rip), %eax
call*bar@TLSCALL(%eax)
addl%fs:0, %eax
cmpl%edi, (%eax)
jne .L9
addl$8, %esp
.cfi_remember_state
.cfi_def_cfa_offset 8
ret
.L9:
.cfi_restore_state
callabort@PLT
.cfi_endproc
.size   test2, .-test2
.section.tdata,"awT",@progbits
.align 4
.type   foo, @object
.size   foo, 4
foo:
.long   30
.section.note.GNU-stack,"",@progbits
[hjl@gnu-cfl-2 tls-x32]$ gcc -mx32 tlsdes.S main.c
/usr/local/bin/ld: /tmp/ccdQjj3W.o: TLS transition from
R_X86_64_GOTPC32_TLSDESC to R_X86_64_TPOFF32 against `foo' at 0x5 in section
`.text' failed
collect2: error: ld returned 1 exit status
[hjl@gnu-cfl-2 tls-x32]$

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


[Bug ld/25416] TLSDESC relaxation doesn't work for x32

2020-01-18 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25416

--- Comment #2 from H.J. Lu  ---
For x32, we must encode "lea x@TLSDESC(%rip), %eax" with a REX prefix
even if it isn't required.  Otherwise linker can’t safely perform
GDesc -> LE optimization.

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