~ubuntu-support-team/binutils/+git/binutils-gdb:users/ARM/gcs-binutils-gdb-master

Last commit made on 2024-01-30
Get this branch:
git clone -b users/ARM/gcs-binutils-gdb-master https://git.launchpad.net/~ubuntu-support-team/binutils/+git/binutils-gdb

Branch merges

Branch information

Name:
users/ARM/gcs-binutils-gdb-master
Repository:
lp:~ubuntu-support-team/binutils/+git/binutils-gdb

Recent commits

ba52022... by SRINATH PARVATHANENI

aarch64: Add support for GCS in AArch64 linker.

This patch adds support for GCS in AArch64 linker.

This patch implements the following:
1) Defines GNU_PROPERTY_AARCH64_FEATURE_1_GCS bit for GCS in
GNU_PROPERTY_AARCH64_FEATURE_1_AND macro.

2) Adds readelf support to read and print the GNU properties
in AArch64.

Displaying notes found in: .note.gnu.property
[ ]+Owner[ ]+Data size[ ]+Description
  GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0
      Properties: AArch64 feature: GCS

3) Adds support for -z experimental-gcs linker option and document
all the values allowed with option (-z experimental-gcs[=always|never|implicit]).
-z experimental-gcs is equivalent to -z experimental-gcs=always and
when option is not passed in the command line, it defaults to implicit.

4) Adds support for -z experimental-gcs-report linker option and document
all the values allowed with this option (-z experimental-gcs-report[=none|warning|error]).
-z experimental-gcs-report is equivalent to -z experimental-gcs-report=none
and when option is not passed in the command line, it defaults to none.

The ABI changes adding GNU_PROPERTY_AARCH64_FEATURE_1_GCS to the
GNU property GNU_PROPERTY_AARCH64_FEATURE_1_AND is merged into main and
can be found below.
https://github.com/ARM-software/abi-aa/blob/main/sysvabi64/sysvabi64.rst

b960445... by GDB Administrator <email address hidden>

Automatic date update in version.in

e175a2f... by Alan Modra

PR31314, chew crashing on use of uninitialized value

The "drop" call in wrap_comment already increments pc. Defining DOCDD
in proto.str is a warning fix.

 PR 31314
 * chew.c (wrap_comment): Don't increment pc.
 * proto.str (DOCDD): Define.

920d9f0... by "Jose E. Marchesi" <email address hidden>

sim: bpf: remove support for ldinddw and ldabsdw instructions

This patch removes support for the two instructions above from the GNU
simulator, including the corresponding tests. These instructions do
not really exist in BPF and are not recognized as such by the kernel
verifier. This has now been pointed out during the standardization of
the BPF ISA.

Signed-off-by: Jose E. Marchesi <email address hidden>

878e894... by Lancelot SIX <email address hidden>

gdb: Use SYM_DOMAIN instead of DOMAIN when calling sym-domains.def

Since commit 6771fc6f1d9 "Use a .def file for domain_enum", the
sym-domains.def file has been introduced, and requires the user to
define the DOMAIN(x) macro.

On older systems (centos-7 with glibc-2.17 for example), this DOMAIN
macro conflicts with another macro defined in /usr/include/math.h.

Fix this conflict by changing sym-domains.def to use a macro named
SYM_DOMAIN instead of DOMAIN.

Change-Id: I679df30e2bd2f4333343f16bbd2a3511a37550a3
Approved-By: Tom Tromey <email address hidden>

34e222d... by "Jose E. Marchesi" <email address hidden>

bfd: restore Threading menu entry in bfd.texi

I mistakenly vandalized bfd.texi in the commit
0c45feb159a14ca4cb50cfbf45eacaf5a6cecf2b by removing an entry in the
manual menu. This commit reverts that thunk.

0c45feb... by "Jose E. Marchesi" <email address hidden>

bpf: there is no ldinddw nor ldabsdw instructions

There are no legacy ldind nor ldabs BPF instructions with BPF_SIZE_DW.
For some reason we were (incorrectly) supporting these. This patch
updates the opcodes so the instructions get removed and modifies the
GAS manual and testsuite accordingly.

See discussion at
https://<email address hidden>

Tested in bpf-uknonwn-none target, x86-64-linux-gnu host.

include/ChangeLog:

2024-01-29 Jose E. Marchesi <email address hidden>

 * opcode/bpf.h (enum bpf_insn_id): Remove BPF_INSN_LDINDDW and
 BPF_INSN_LDABSDW instructions.

opcodes/ChangeLog:

2024-01-29 Jose E. Marchesi <email address hidden>

 * bpf-opc.c (bpf_opcodes): Remove BPF_INSN_LDINDDW and
 BPF_INSN_LDABSDW instructions.

gas/ChangeLog:

2024-01-29 Jose E. Marchesi <email address hidden>

 * doc/c-bpf.texi (BPF Instructions): There is no indirect 64-bit
 load instruction.
 (BPF Instructions): There is no absolute 64-bit load instruction.
 * testsuite/gas/bpf/mem.s: Update test accordingly.
 * testsuite/gas/bpf/mem-be-pseudoc.d: Likewise.
 * testsuite/gas/bpf/mem-be.d: Likewise.
 * testsuite/gas/bpf/mem-pseudoc.d: Likewise.
 * testsuite/gas/bpf/mem-pseudoc.s: Likewise.
 * testsuite/gas/bpf/mem.d: Likewise.
 * testsuite/gas/bpf/mem.s: Likewise.

f391196... by Nick Clifton <email address hidden>

Update release making documentation after 2.42 release

bd3828b... by Nick Clifton <email address hidden>

Remove support for the beos file format

6336806... by Hannes Domani <email address hidden>

Fix backtrace limit stopping on inline frame

If you have set up a backtrace limit, and the backtrace stops
because of this in an inline frame with arguments, you get an
assertion failure:
```
(gdb) bt
(gdb) set backtrace limit 2
(gdb) bt
C:/src/repos/binutils-gdb.git/gdb/frame.c:3346: internal-error: reinflate: Assertion `m_cached_level >= -1' failed.
```

And if this one is fixed, there is another one as well:
```
(gdb) bt
C:/src/repos/binutils-gdb.git/gdb/dwarf2/loc.c:1160: internal-error: dwarf_expr_reg_to_entry_parameter: Assertion `frame != NULL' failed.
```

The reason for both of them is this kind of loop:
```
  while (get_frame_type (frame) == INLINE_FRAME)
    frame = get_prev_frame (frame);
```
Since get_prev_frame respects the backtrace limit, it will return
NULL, and from there on you can't continue.
This changes these loops to use get_prev_frame_always instead, so
you always get a non-inline frame in the end.

With this backtrace works:
```
(gdb) bt
(gdb)
```

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29865
Approved-By: Andrew Burgess <email address hidden>