Debian Patches

Status for binutils/2.43.50.20241230-1

Patch Description Author Forwarded Bugs Origin Last update
001_ld_makefile_patch.patch Description: correct where ld scripts are installedUpstream status: N/A Chris Chimelis <chris@debian.org> no
002_gprof_profile_arcs.patch Add more documentation about profiling and -fprofile-arcs. Chris Chimelis <chris@debian.org> no
003_gprof_see_also_monitor.patch Don't mention monitor(3) which doesn't exist in Debian. (#160654) Chris Chimelis <chris@debian.org> no
006_better_file_error.patch Specify which filename is causing an error if the filename is adirectory. (#45832) David Kimdon <dwhedon@gordian.com> no
013_bash_in_ld_testsuite.patch Explicitly use bash for the ld testsuite. Matthias Klose <doko@ubuntu.com> no
128_ppc64_powerpc_biarch.patch no
129_multiarch_libpath.patch # DP: Add multiarch directories to linker search path for ld and gold. no
130_gold_disable_testsuite_build.patch Description: Disable build of gold/testsuiteUpstream status: local Matthias Klose no
131_ld_bootstrap_testsuite.patch Description: Fix ld-bootstrap testsuite when configured with --enable-pluginsUpstream status: proposed patch Rafael Espindola no
135_bfd_soversion.patch no
136_bfd_pic.patch Build libbfd with -fPIC to allow linking with PIE binaries Balint Reczey <balint@balintreczey.hu> no
157_ar_scripts_with_tilde.patch no
161_gold_dummy_zoption.diff # DP: let gold accept a dummy -z buildd-<random-string> option. no
164_ld_doc_remove_xref.diff # DP: In ld.texi, remove cross reference to BFD internals documentation. no
gprof-build.diff # DP: Fix gprof build error. no
aarch64-libpath.diff no
gold-no-keep-files-mapped.diff # DP: gold on 32bit archs: Release mapped files after each pass. no
libctf-soname.diff no
mips-hack.diff no
perl-shebang.diff no
env-package-metadata.diff no
pr32392-workaround.diff no
armhf-64k-alignment.diff The upstream binutils commit below reduced the section alignment of
armhf executables (including shared libraries) from 64k to 4k, on the
basis that the additional bloat is not justified, given that arm64 hosts
running 64k pagesize kernels with armhf user space are not used in
practice.

However, the situation is slightly different today on Debian, where a
16k pagesize kernel is provided that enables compat support, and is
therefore able to execute armhf user space. The only impediment is the
fact that armhf binaries are no longer compatible with this, due to the
change below.

To accommodate this use case, revert the patch. This makes the generated
executables compatible with compat mode on arm64 systems running 16k
kernels.
no
gold-package-metadata.diff [PATCH RESEND] gold: Support percent-encoded JSON in --package-metadata

Specifying the compiler flag `-Wl,--package-metadata=<JSON>` will not
work in case the JSON contains a comma, because compiler drivers eat
commas. Example:

```
$ echo "void main() { }" > test.c
$ gcc -fuse-ld=gold '-Wl,--package-metadata={"type":"deb","os":"ubuntu"}' test.c
/usr/bin/ld.gold: error: cannot open "os":"ubuntu"}: No such file or directory
/usr/bin/ld.gold: fatal error: error: --package-metadata={"type":"deb" does not contain valid JSON: '}' expected near end of file

collect2: error: ld returned 1 exit status
```

The quotation marks in the JSON value do not work well with shell nor
make. Specifying the `--package-metadata` linker flag in a `LDFLAGS`
environment variable might loose its quotation marks when it hits the
final compiler call.

Following the same format as the implementation in ld:
b0cc81e87087bb8a6b12dc1e4fd7f2591927977b

So support percent-encoded and %[string] encoded JSON data in the
`--package-metadata` linker flag. Percent-encoding is used because it is
a standard, simple to implement, and does take too many additional
characters. %[string] encoding is supported for having a more readable
encoding.
benjamin.drung@canonical.com (Benjamin Drung) yes upstream 2024-12-17
pr32391-revert.diff [PATCH] gas: Revert PR 32391 related commits to fix 3 regressions
9f2e3c21f65 Fix the handling or arguments and macro pseudo-variables inside nested assembler macros.

introduced 3 regressions of PR gas/32484, PR gas/32486 and PR gas/32487.
Revert all PR 32391 related commits and add tests for PR gas/32484,
PR gas/32486, PR gas/32487.

PR gas/32484
PR gas/32486
PR gas/32487
* testsuite/gas/macros/macros.exp: Run nesting1, nesting2 and
nesting3.
hjl.tools@gmail.com (H.J. Lu) no 2024-12-26

All known versions for source package 'binutils'

Links