Package: binutils / 2.43.50.20241230-1

Metadata

Package Version Patches format
binutils 2.43.50.20241230-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
001_ld_makefile_patch.patch | (download)

ld/Makefile.am | 2 1 + 1 - 0 !
ld/Makefile.in | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 
002_gprof_profile_arcs.patch | (download)

gprof/gprof.texi | 9 9 + 0 - 0 !
1 file changed, 9 insertions(+)

 add more documentation about profiling and -fprofile-arcs.

003_gprof_see_also_monitor.patch | (download)

gprof/gprof.texi | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 don't mention monitor(3) which doesn't exist in debian. (#160654)

006_better_file_error.patch | (download)

bfd/opncls.c | 7 7 + 0 - 0 !
1 file changed, 7 insertions(+)

 specify which filename is causing an error if the filename is a
directory. (#45832)

013_bash_in_ld_testsuite.patch | (download)

ld/testsuite/config/default.exp | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 explicitly use bash for the ld testsuite.

128_ppc64_powerpc_biarch.patch | (download)

ld/emulparams/elf32ppccommon.sh | 9 9 + 0 - 0 !
1 file changed, 9 insertions(+)

---
129_multiarch_libpath.patch | (download)

gold/Makefile.am | 1 1 + 0 - 0 !
gold/Makefile.in | 2 2 + 0 - 0 !
gold/configure | 9 9 + 0 - 0 !
gold/configure.ac | 8 8 + 0 - 0 !
gold/options.cc | 7 7 + 0 - 0 !
ld/genscripts.sh | 231 218 + 13 - 0 !
6 files changed, 245 insertions(+), 13 deletions(-)

---
130_gold_disable_testsuite_build.patch | (download)

gold/Makefile.am | 2 1 + 1 - 0 !
gold/Makefile.in | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 
131_ld_bootstrap_testsuite.patch | (download)

ld/testsuite/ld-bootstrap/bootstrap.exp | 18 18 + 0 - 0 !
1 file changed, 18 insertions(+)

 
135_bfd_soversion.patch | (download)

bfd/Makefile.am | 4 2 + 2 - 0 !
bfd/Makefile.in | 4 2 + 2 - 0 !
2 files changed, 4 insertions(+), 4 deletions(-)

---
136_bfd_pic.patch | (download)

bfd/Makefile.am | 2 1 + 1 - 0 !
bfd/Makefile.in | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 build libbfd with -fpic to allow linking with pie binaries


157_ar_scripts_with_tilde.patch | (download)

binutils/arlex.l | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
161_gold_dummy_zoption.diff | (download)

gold/options.cc | 2 2 + 0 - 0 !
gold/options.h | 3 3 + 0 - 0 !
2 files changed, 5 insertions(+)

---
164_ld_doc_remove_xref.diff | (download)

ld/ld.texi | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

---
gprof build.diff | (download)

gprof/gconfig.in | 3 0 + 3 - 0 !
1 file changed, 3 deletions(-)

---
aarch64 libpath.diff | (download)

ld/emulparams/aarch64linux.sh | 17 10 + 7 - 0 !
1 file changed, 10 insertions(+), 7 deletions(-)

---
gold no keep files mapped.diff | (download)

gold/options.h | 3 2 + 1 - 0 !
1 file changed, 2 insertions(+), 1 deletion(-)

---
libctf soname.diff | (download)

binutils/Makefile.am | 4 2 + 2 - 0 !
binutils/Makefile.in | 11 7 + 4 - 0 !
binutils/configure | 8 6 + 2 - 0 !
binutils/configure.ac | 3 3 + 0 - 0 !
ld/Makefile.am | 2 1 + 1 - 0 !
ld/Makefile.in | 6 4 + 2 - 0 !
ld/configure | 8 6 + 2 - 0 !
ld/configure.ac | 3 3 + 0 - 0 !
libctf/Makefile.am | 18 14 + 4 - 0 !
libctf/Makefile.in | 594 314 + 280 - 0 !
libctf/configure | 8 6 + 2 - 0 !
libctf/configure.ac | 3 3 + 0 - 0 !
12 files changed, 369 insertions(+), 299 deletions(-)

---
mips hack.diff | (download)

gas/config/tc-mips.c | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

---
perl shebang.diff | (download)

gprofng/gp-display-html/gp-display-html.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
env package metadata.diff | (download)

Makefile.in | 50 50 + 0 - 0 !
Makefile.tpl | 3 3 + 0 - 0 !
gold/layout.cc | 29 23 + 6 - 0 !
ld/ldelf.c | 12 12 + 0 - 0 !
4 files changed, 88 insertions(+), 6 deletions(-)

---
pr32392 workaround.diff | (download)

gprofng/libcollector/Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

---
armhf 64k alignment.diff | (download)

bfd/elf32-arm.c | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

---
gold package metadata.diff | (download)

gold/options.cc | 72 72 + 0 - 0 !
gold/options.h | 17 16 + 1 - 0 !
gold/testsuite/Makefile.am | 16 14 + 2 - 0 !
gold/testsuite/Makefile.in | 82 72 + 10 - 0 !
4 files changed, 174 insertions(+), 13 deletions(-)

 [patch resend] gold: support percent-encoded json in
 --package-metadata
Message-ID: <20241217152746.98360-1-benjamin.drung@canonical.com>

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.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32003
Bug-Ubutru: https://bugs.launchpad.net/bugs/2071468
Signed-off-by: Benjamin Drung <benjamin.drung@canonical.com>

pr32391 revert.diff | (download)

gas/config/tc-iq2000.c | 6 5 + 1 - 0 !
gas/doc/as.texi | 60 1 + 59 - 0 !
gas/input-scrub.c | 7 2 + 5 - 0 !
gas/macro.c | 271 41 + 230 - 0 !
gas/macro.h | 17 10 + 7 - 0 !
gas/read.c | 15 6 + 9 - 0 !
gas/testsuite/gas/macros/macros.exp | 4 3 + 1 - 0 !
gas/testsuite/gas/macros/nesting.d | 28 0 + 28 - 0 !
gas/testsuite/gas/macros/nesting.s | 104 0 + 104 - 0 !
gas/testsuite/gas/macros/nesting1.d | 7 7 + 0 - 0 !
gas/testsuite/gas/macros/nesting1.s | 14 14 + 0 - 0 !
gas/testsuite/gas/macros/nesting2.d | 7 7 + 0 - 0 !
gas/testsuite/gas/macros/nesting2.s | 10 10 + 0 - 0 !
gas/testsuite/gas/macros/nesting3.d | 7 7 + 0 - 0 !
gas/testsuite/gas/macros/nesting3.s | 13 13 + 0 - 0 !
15 files changed, 126 insertions(+), 444 deletions(-)

 [patch] gas: revert pr 32391 related commits to fix 3 regressions
Message-ID: <20241226081236.495980-1-hjl.tools@gmail.com>

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.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>