[Bug gas/29494] Trailing jump table leads to "Error: unaligned opcodes detected in executable segment" on ARM thumb

2022-08-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=29494

--- Comment #7 from cvs-commit at gcc dot gnu.org  ---
The master branch has been updated by Alan Modra :

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

commit 6f6f5b0adc9efd103c434fd316e8c880a259775d
Author: Alan Modra 
Date:   Tue Aug 23 16:18:25 2022 +0930

PR29494 Trailing jump table on ARM

out_inc_line_addr and relax_inc_line_addr are passed INT_MAX as
line_delta to flag end of section.  This filters its way down to
size_inc_line_addr and emit_inc_line_addr.  Pass line_delta on to
scale_addr_delta where it can be used to omit an unaligned opcode
error.

PR 29494
* dwarf2dbg.c (scale_addr_delta): Delete unnecessary forward decl.
Add line_delta param.  Don't print error at end of section, just
round the address down.
(size_inc_line_addr, emit_inc_line_addr): Adjust calls.

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


[Bug gas/29494] Trailing jump table leads to "Error: unaligned opcodes detected in executable segment" on ARM thumb

2022-08-28 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29494

--- Comment #8 from Alan Modra  ---
Patch pushed, I'll leave it to Nick to push the testcase.

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


[Bug binutils/29533] New: binutils 2.39 no longer works with UNC paths

2022-08-28 Thread brecht at sanders dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29533

Bug ID: 29533
   Summary: binutils 2.39 no longer works with UNC paths
   Product: binutils
   Version: 2.39
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: brecht at sanders dot org
  Target Milestone: ---

In https://sourceware.org/bugzilla/show_bug.cgi?id=25713 code was changed in
_bfd_real_fopen() in bfd/bfdio.c to handle long path names in Windows.

This was done by prepending pefix "\\?\" to the path.

Unfortunately this breaks using UNC network paths (\\server\share).
Looking at
https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry
it probably also breaks relative paths and paths containing . or .. as
references to the current/parent directory.

So it looks like the patch from
https://sourceware.org/bugzilla/show_bug.cgi?id=25713 is incomplete and should
be modified to at least also support UNC paths.

I'm not the only one with this issue, see also:
https://github.com/brechtsanders/winlibs_mingw/issues/112

Also, from a performance point of view, I don't see the point in converting the
path to UTF16 and using the wide path (as done in _bfd_real_fopen() in
bfd/bfdio.c). Is this necessary or is there any added benefit in doing so?

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


[Bug binutils/29533] binutils 2.39 no longer works with UNC paths

2022-08-28 Thread brecht at sanders dot org
https://sourceware.org/bugzilla/show_bug.cgi?id=29533

Brecht Sanders  changed:

   What|Removed |Added

URL||https://github.com/brechtsa
   ||nders/winlibs_mingw/issues/
   ||112
 Target||x86_64-w64-mingw32
   Host||x86_64-w64-mingw32

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