[Bug gas/22874] GAS does not emit multibyte nops before a function symbol

2018-02-26 Thread mliska at suse dot cz
https://sourceware.org/bugzilla/show_bug.cgi?id=22874

--- Comment #4 from Martin Liska  ---
(In reply to H.J. Lu from comment #1)
> The limit of multibyte nop for code alignment is
> 
> #define MAX_MEM_FOR_RS_ALIGN_CODE  31

Thanks, I can confirm that:

004004c0 :
  4004c0:   eb fe   jmp4004c0 
  4004c2:   66 2e 0f 1f 84 00 00nopw   %cs:0x0(%rax,%rax,1)
  4004c9:   00 00 00 
  4004cc:   66 2e 0f 1f 84 00 00nopw   %cs:0x0(%rax,%rax,1)
  4004d3:   00 00 00 
  4004d6:   66 2e 0f 1f 84 00 00nopw   %cs:0x0(%rax,%rax,1)
  4004dd:   00 00 00 

004004e0 :
  4004e0:   f3 c3   repz retq 
  4004e2:   66 2e 0f 1f 84 00 00nopw   %cs:0x0(%rax,%rax,1)
  4004e9:   00 00 00 
  4004ec:   0f 1f 40 00 nopl   0x0(%rax)

So the logical question is why is it limited? Does it have any disadvantages to
emit also big paddings in between symbols?

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread jrtc27 at jrtc27 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

James Clarke  changed:

   What|Removed |Added

 CC||jason.duerstock at gmail dot 
com,
   ||jrtc27 at jrtc27 dot com,
   ||slyfox at inbox dot ru

--- Comment #1 from James Clarke  ---
I just ran into this when compiling qtwebkit, and can confirm that this patch
fixed the issue for me. Stephan, if you're still interested in this bug, could
you please add a suitable ChangeLog-style commit message and submit this to the
mailing list?

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread jrtc27 at jrtc27 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

James Clarke  changed:

   What|Removed |Added

 CC||ebotcazou at gcc dot gnu.org

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

Jim Wilson  changed:

   What|Removed |Added

 CC||wilson at gcc dot gnu.org

--- Comment #2 from Jim Wilson  ---
Created attachment 10855
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10855&action=edit
updated untested patch

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

--- Comment #3 from Jim Wilson  ---
The patch looks mostly correct, but we should be setting changed_contents also.
 The patch looks small enough and obvious enough that I don't think that we
need a copyright assignment for the provided patch.

Unfortunately, I don't have access to ia64 hardware, so I can't easily test the
patch with anything other than the binutils testsuite.

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

--- Comment #4 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Jim Wilson :

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

commit 6f6372fadcfffc89ef511d51323678f88624be5c
Author: Jim Wilson 
Date:   Mon Feb 26 14:05:13 2018 -0800

IA-64: Fix linker error with --no-keep-memory.

bfd/
PR 15904
* elfnn-ia64.c (elfNN_ia64_relax_section): After ia64_elf_relax_brl
call, set changed_contents and changed_relocs.  Likewise after
successful ia64_elf_relax_br call.

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

--- Comment #5 from Jim Wilson  ---
Updated patch committed.

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread wilson at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

Jim Wilson  changed:

   What|Removed |Added

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

--- Comment #6 from Jim Wilson  ---
Updated patch committed.

-- 
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 ld/15904] ia64, ELF, 'Can't relax br (PCREL21B)' error message on --no-keep-memory

2018-02-26 Thread jrtc27 at jrtc27 dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=15904

--- Comment #7 from James Clarke  ---
(In reply to Jim Wilson from comment #5)
> Updated patch committed.

Great, thanks! Could you please consider backporting it to the 2.30 branch?

-- 
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/22886] Timeout at cplus-dem.c (73658672)

2018-02-26 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22886

Alan Modra  changed:

   What|Removed |Added

 Status|UNCONFIRMED |RESOLVED
 CC||amodra at gmail dot com
 Resolution|--- |MOVED

--- Comment #1 from Alan Modra  ---
demangler bugs belong with the gcc project.  The testcase added to a similar
bug there, https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81682

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