~ubuntu-support-team/binutils/+git/binutils-gdb:binutils-2_41-branch

Last commit made on 2024-02-23
Get this branch:
git clone -b binutils-2_41-branch https://git.launchpad.net/~ubuntu-support-team/binutils/+git/binutils-gdb

Branch merges

Branch information

Name:
binutils-2_41-branch
Repository:
lp:~ubuntu-support-team/binutils/+git/binutils-gdb

Recent commits

1900793... by Lulu Cai <email address hidden>

as: fixed internal error when immediate value of relocation overflow.

The as and ld use _bfd_error_handler to output error messages when
checking relocation alignment and relocation overflow. However, the
abfd value passed by as to the function is NULL, resulting in an
internal error. The ld passes a non-null value to the function,
so it can output an error message normally.

(cherry picked from commit f87cf663af71e5d78c8d647fa48562102f3b0615)

5937f51... by Peter Bergner

PowerPC: Add support for Power11 options

binutils/
 * doc/binutils.texi (PowerPC -M option): Mention power11 and pwr11.

gas/
 * config/tc-ppc.c: (md_show_usage): Mention -mpower11 and -mpwr11.
 * doc/c-ppc.texi: Likewise.

opcodes/
 * ppc-dis.c (ppc_opts): Add "power11" and "pwr11" entries.
 (powerpc_init_dialect): Default to "power11".

(cherry picked from commit 4199cf1e152daab0460f08cc7dbd1f727ac3e4cc)

4a11c1c... by mengqinggang <email address hidden>

LoongArch: Add more relaxation testcases

1. .so relaxation testcase
2. ld --no-relax testcase
3. segment alignment testcase

(cherry picked from commit 580a53dab47c9e4f97c8559440d2bc43fb7331b6)

8be3e12... by mengqinggang <email address hidden>

LoongArch: Modify link_info.relax_pass from 3 to 2

The first pass handles R_LARCH_RELAX relocations, the second pass
handles R_LARCH_ALIGN relocations.

(cherry picked from commit 8338aecd231af48483e36c93c103db1da715ac74)

3e45495... by mengqinggang <email address hidden>

LoongArch: Remove "elf_seg_map (info->output_bfd) == NULL" relaxation condition

Previously the condition prevented shared objects from being relaxed.
To remove the limitation, we need to update program header size and
.eh_frame_hdr size before relaxation.

(cherry picked from commit 4f2469d0cdd0f3bd1d9040521e002e8df0a63a98)

9496099... by mengqinggang <email address hidden>

LoongArch: Multiple relax_trip in one relax_pass

If deleting instructions in one relax_trip, set again to true to start the
next relax_trip.

(cherry picked from commit b130a0849a1b3e174210903cf5370092decc62d6)

216034a... by mengqinggang <email address hidden>

LoongArch: Directly delete relaxed instuctions in first relaxation pass

Directly delete relaxed instuctions in first relaxation pass, not use
R_LARCH_DELETE relocation. If not, the PC-relative offset may increase.

(cherry picked from commit 4e94082d95e046f357409cd689ffeedd60f6c673)

3e52188... by mengqinggang <email address hidden>

LoongArch: Fix ld --no-relax bug

When calling ld with --no-relax, pcalau12i + ld.d still can be relaxed.
This patch fix this bug and pcalau12i + ld.d can be relaxed with --relax.

(cherry picked from commit 363174776d13db9f35f2e54d8f7f5e34b64acbee)

883df8a... by Vladimir Mezentsev <email address hidden>

Fix 31252 gprofng causes testsuite parallel jobs fail

Before running our tests, we made a fake installation into ./tmpdir.
This installation changes libopcodes.la in the build area.
Gas testing may fail if gas and gprofng tests are run in parallel.

I create a script to run gprofng. Inside this script, LD_LIBRARY_PATH,
GPROFNG_SYSCONFDIR are set.
putenv_libcollector_ld_misc() first uses $GPROFNG_PRELOAD_LIBDIRS to create
directories for SP_COLLECTOR_LIBRARY_PATH ($SP_COLLECTOR_LIBRARY_PATH is used
to set up LD_PRELOAD).

gprofng/ChangeLog
2024-01-19 Vladimir Mezentsev <email address hidden>

 PR gprofng/31252
 PR gprofng/30808
 * src/envsets.cc (putenv_libcollector_ld_misc): Use
 $GPROFNG_PRELOAD_LIBDIRS first to build SP_COLLECTOR_LIBRARY_PATH.
 * testsuite/config/default.exp: Create a script to run gprofng.
 * testsuite/lib/display-lib.exp: Fix typo.

(cherry picked from commit 26f557af696726a8556bff12f54e4d05cd7a5034)

306b66b... by GDB Administrator <email address hidden>

Automatic date update in version.in