[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-28 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-25 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 Nick Alcock changed: What|Removed |Added Status|WAITING |ASSIGNED --- Comment #10 from Nick Alco

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #8 from Nick Alcock

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 --- Comment #7 from Nick Alcock --- ... never mind, that crash doesn't happen if you use the system compiler (I was using GCC 14 by mistake) -- I get a mass of undefined symbol errors linking libbfd instead: Undefined symbols for architecture

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 --- Comment #6 from Nick Alcock --- Presumably this was a static link? I can't make libbfd link dynamically at all on cfarm104: CCLD libbfd.la 0 0x1011280c0 __assert_rtn + 140 1 0x10112edb8 ld::tool::OutputFile::setFixup64(unsigned

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 --- Comment #4 from Nick Alcock --- Hm. It's not entirely unreachable code, actually, and some things do use it...can I make this less incomprehensible, at least... I think so. -- You are receiving this mail because: You are on the CC list f

[Bug libctf/31056] --enable-shared leads to Undefined symbols

2025-07-23 Thread nick.alcock at oracle dot com
||nick.alcock at oracle dot com Status|UNCONFIRMED |RESOLVED --- Comment #1 from Nick Alcock --- See 33194 (which is a dupe of this, but I started looking at that first). *** This bug has been marked as a duplicate of bug 33194 *** -- You are

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 Nick Alcock changed: What|Removed |Added CC||kirill at korins dot ky --- Comment #3

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/33161] libctf: configuring and building fails with the Solaris linker

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33161 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33194 --- Comment #2 from Nick Alcock --- ... on second thought it's hardly more difficult to simply remove the lazy loading misfeature. On closer investigation it is entirely inaccessible from the public API anyway: no loss. -- You are receiving

[Bug libctf/33194] Binutils fail to build on macos 15.5

2025-07-23 Thread nick.alcock at oracle dot com
sourceware dot org |nick.alcock at oracle dot com Last reconfirmed||2025-07-23 Status|UNCONFIRMED |ASSIGNED --- Comment #1 from Nick Alcock --- This is a weak symbol reference used for lazily opening CTF in the linking API (an extremely

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-18 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #19 from Nick Alcock --- I'm adding a bunch more symbols: basically everything in the ABI-mandated lists in elf_solaris2_before_allocation. None of these are C entities, any of them might end up as STT_OBJECTs (though for most of t

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-18 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #18 from Nick Alcock --- OK, the shell is not somewhere I had even considered as a bug source for this (nor textual corruption in the generated emulation stuff). This has been my official "now I feel like an idiot" moment for the d

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-18 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #16 from Nick Alcock --- Hm. This freshly built GNU ld on the compile farm box which I believe is yours (cfarm216) seems to be quite unhappy: nix@s11-sparc:~/binutils-gdb/build/ld$ ./ld-new --verbose GNU ld (GNU Binutils) 2.45.50.

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #14 from Nick Alcock --- I think I have something which can literally check to see whether the linker is dedupping CTF or simply concatenating it :) so even non-GNU linkers should just skip libctf tests that require a deduplicating

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #11 from Nick Alcock --- OK, so it's kind of acceptable to have required configurations for a GCC used for binutils testing, then. I wasn't sure. Time to build a new GCC locally on that cfarm box :) (it *is* probably valuable to h

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #9 from Nick Alcock --- OK, so this GCC was configured with --without-gnu-ld --with-ld=/usr/bin/ld --with-gnu-as --with-as=/usr/gnu/bin/as These absolute paths force collect2 to use those paths no matter what -B says. nix@s11-sp

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #8 from Nick Alcock --- Yes -- but if GCC wasn't built with GNU ld, collect2 appears to run the non-GNU ld anyway, ignoring(?) -B: nix@s11-sparc:~/binutils-gdb/build/libctf$ LIBCTF_DEBUG=t gcc -v -B/home/nix/binutils-gdb/build/lib

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #6 from Nick Alcock --- ... OK, so I need to detect (and probably need to detect for ld tests as well) when gcc is built to use a non-GNU ld, and skip all tests that require CTF dedup in this case. (Again, this probably includes a

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #5 from Nick Alcock --- OK, the libctf failures are because it's running the wrong linker. Now, what's up with that... -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #4 from Nick Alcock --- We can probably assume that pre-v8plus hardware is long extinct, so this horrible hack will probably do. (A shame we can't arrange to assemble "the same way GCC does", though.) -- You are receiving this ma

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33162 --- Comment #2 from Nick Alcock --- There's a big pile of libctf/ failures too, none of which I remember seeing before... I'll have a look at those. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/33162] Diagnostics FAILs on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- I think we can safely say that the PLT will never itself be an entity with a C type, so this patch is good. (And those symbols were basically there because of Solaris in the first place, anyway.) I'l

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 --- Comment #10 from Nick Alcock --- Well, with that fixed the libctf tests do pass on Sol11.4. The ld tests are... full of pain, but still better than on some platforms. -- You are receiving this mail because: You are on the CC list for the

[Bug libctf/33161] libctf: configuring and building fails with the Solaris linker

2025-07-16 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/33161] New: libctf: configuring and building fails with the Solaris linker

2025-07-16 Thread nick.alcock at oracle dot com
Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- The failure is embarrassingly silly: checking for linker versioning flags... -Wl,-B,local -Wl,-z,gnu-version-script /home/nix

[Bug libctf/33161] libctf: configuring and building fails with the Solaris linker

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33161 Nick Alcock changed: What|Removed |Added Host||*-solaris2.11* Build|

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 --- Comment #8 from Nick Alcock --- That's not the only problem I found on Sol11.4... builds fail entirely when Solaris ld is in use because the libctf-nobfd.ver script generation is broken. I'll raise another bug. -- You are receiving this

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 --- Comment #5 from Nick Alcock --- Oh of course, we already have mmap-disabling code in place! More fool me, I only wrote it. It will also turn off (entirely working) mmapping of reads, but since that's only used for uncompressed CTF, and nev

[Bug libctf/29292] Several CTF tests FAIL on Solaris

2025-07-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29292 --- Comment #3 from Nick Alcock --- Thank you for the report! The advantage of the mmap dance is purely that it makes writing out the header simpler: we can jump around in it and just treat it like a data structure rather than messing about w

[Bug binutils/31611] bfd: bfdio using shlwapi (win32) functionality without linking

2025-06-06 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31611 Nick Alcock changed: What|Removed |Added CC||nick.alcock at oracle dot com

[Bug libctf/31863] Warnings about %z format when compiling ctf-open.c with MinGW

2025-06-04 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31863 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/33047] libctf linking generates unexpectedly hidden types when doing cu-mapped links

2025-06-04 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33047 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/31863] Warnings about %z format when compiling ctf-open.c with MinGW

2025-06-03 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31863 --- Comment #5 from Nick Alcock --- There is a caveat here: this has to be conditionalized further unless you want to replace an ugly warning on one platform with an ugly warning with a different compiler on all platforms, because clang doesn'

[Bug libctf/33047] libctf linking generates unexpectedly hidden types when doing cu-mapped links

2025-06-02 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=33047 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/33047] New: libctf linking generates unexpectedly hidden types when doing cu-mapped links

2025-06-02 Thread nick.alcock at oracle dot com
Severity: normal Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- cu-mapped CTF links are a weird variant of linking which, rather than emitting conflicting types into child

[Bug libctf/31863] Warnings about %z format when compiling ctf-open.c with MinGW

2025-05-30 Thread nick.alcock at oracle dot com
||nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- O. I wondered why this was happening! Will pull this fix in. Thank you very much! (The libcs MinGW can use all seem to support %z perfectly well, which makes this behaviour deeply confusing. I guess GCC is

[Bug libctf/31863] Warnings about %z format when compiling ctf-open.c with MinGW

2025-05-30 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31863 --- Comment #3 from Nick Alcock --- Oh it hasn't -- I see the warnings on MinGW everywhere too. I was merely noting that this doesn't seem to align with the behaviour of the actual printf in the various libcs MinGW can use, which all seem to s

[Bug libctf/30985] ctf_add_member_encoded of a type on a parent dumps core

2025-05-30 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30985 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ld/32426] Linking of ld-new fails in case incompatible libiberty is available

2025-05-30 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32426 Nick Alcock changed: What|Removed |Added CC||nick.alcock at oracle dot com

[Bug binutils/32986] installed libtool archives contain references to build-time paths

2025-05-30 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32986 Nick Alcock changed: What|Removed |Added CC||nick.alcock at oracle dot com

[Bug libctf/32903] Error pointer overwritten on successful dict open in ctf_dict_open

2025-05-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32903 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/32903] Error pointer overwritten on successful dict open in ctf_dict_open

2025-05-20 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32903 --- Comment #5 from Nick Alcock --- OK, so having added some actual tests for this, more than ctf_bufopen needs fixing: a bunch of ctf_archive entry points do too. Fix under test (not just on v4: against master too). We still do not set the c

[Bug libctf/32903] Error pointer overwritten on successful dict open in ctf_dict_open

2025-05-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32903 --- Comment #4 from Nick Alcock --- I'm piling another fix in on top of this on the v4 branch, and getting ctf_bufopen to always set its errp to 0 on success, so it always has a defined value after an open come what may. -- You are receiving

[Bug libctf/32903] Error pointer overwritten on successful dict open in ctf_dict_open

2025-05-08 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32903 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/32903] Error pointer overwritten on successful dict open in ctf_dict_open

2025-04-28 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32903 --- Comment #2 from Nick Alcock --- Formally, we do not define what happens to the err pointer except on failure, but I'd agree that overwriting it with junk is bad! I agree with the fix, and will drop something like it into the CTFv4 branch

[Bug libctf/32746] ctf_member_info() cannot handle anonymous structs with cvr-quals

2025-02-28 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32746 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/32746] ctf_member_info() cannot handle anonymous structs with cvr-quals

2025-02-25 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=32746 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug ld/29594] [ld, feature request] Add --ctf-functions

2025-01-06 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #2 from Nick Alcock --- (oops, logged in with the wrong account: taken, for the doc fix if nothing else is needed, the full fix otherwise.) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/31882] libctf: fails test suite on 32-bit platforms due to incorrect format specifiers

2024-06-13 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31882 --- Comment #7 from Nick Alcock --- Thanks, Alan. I can start using %z without fear from now on, as opposed to just accidentally using it out of habit and then cursing and reverting it when it breaks on mingw. (I'm fairly sure that when libctf

[Bug libctf/31882] libctf: fails test suite on 32-bit platforms due to incorrect format specifiers

2024-06-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=31882 --- Comment #4 from Nick Alcock --- This patch replaces a non-%z with a %z -- can we actually rely on %z working these days? I used to have to use %i and casts... -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/30985] ctf_add_member_encoded of a type on a parent dumps core

2023-10-19 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- There are no uses of any of these functions in crash-inducing or error-inducing ways in the linker or CTF deduplicator; the deduplicator never calls ctf_add_member_encoded at all, and when it adds types to

[Bug libctf/30985] New: ctf_add_member_encoded of a type on a parent dumps core

2023-10-19 Thread nick.alcock at oracle dot com
Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- This dumps core: ctf_dict_t *fp; ctf_encoding_t e = { CTF_INT_SIGNED, 0, sizeof (long) }; ctf_id_t type; int err; if ((fp

[Bug libctf/30226] CTF deduplication is incompatible with -femit-struct-debug-detailed=base

2023-07-05 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30226 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #2 from Nick Alcock

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2023-07-05 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27967 Nick Alcock changed: What|Removed |Added Status|WAITING |RESOLVED Resolution|---

[Bug libctf/29983] 2.36+ type confusion in outdated-input warning causes out-of-bounds access and possible overwrite

2023-05-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29983 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_type, file libctf/ctf-dedup.c, line 2342, function sort_output_mapping

2023-03-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30013 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/30264] offsets of fields in unnamed structures/unions are wrong

2023-03-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30264 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/30264] offsets of fields in unnamed structures/unions are wrong

2023-03-22 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30264 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/30264] New: offsets of fields in unnamed structures/unions are wrong

2023-03-22 Thread nick.alcock at oracle dot com
Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- In e.g. struct A { int a; char *b; struct { struct { char *one; int two; }; }; }; offsetof (struct A

[Bug libctf/30226] CTF deduplication is incompatible with -femit-struct-debug-detailed=base

2023-03-13 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- Testing a fix now. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/30226] New: CTF deduplication is incompatible with -femit-struct-debug-detailed=base

2023-03-13 Thread nick.alcock at oracle dot com
Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- Minimal reproducer: [ibhagat@ibhagatpc final2]$ cat t.i # 8 "" typedef struct { union { int addr4;

[Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_type, file libctf/ctf-dedup.c, line 2342, function sort_output_mapping

2023-01-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30013 --- Comment #3 from Nick Alcock --- It's curious that this works in 2.39: going by the source code it should have been broken all the way from the introduction of the deduplicator in 2.36, since we always sorted the output mappings so that obj

[Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_type, file libctf/ctf-dedup.c, line 2342, function sort_output_mapping

2023-01-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=30013 --- Comment #2 from Nick Alcock --- Replicated. I also observe a bunch of failures in the libctf and ld/ld-ctf testsuites, all of the form you report. Fix under test (at first sight it appears to fix it), and I've audited all qsort uses in li

[Bug libctf/30013] [2.40 regression] Assertion failed: one_type != two_type, file libctf/ctf-dedup.c, line 2342, function sort_output_mapping

2023-01-19 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- Looks like it. This is strange because the no-qsort case is *meant* to get routinely tested... as is Solaris 11.3. But I don't often do full GCC bootstraps on it, so I guess we can see how this got

[Bug libctf/29983] 2.36+ type confusion in outdated-input warning causes out-of-bounds access and possible overwrite

2023-01-10 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29983 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/29983] New: 2.36+ type confusion in outdated-input warning causes out-of-bounds access and possible overwrite

2023-01-10 Thread nick.alcock at oracle dot com
Severity: normal Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- The observed failure looks like this when running the testsuite: failed with: , expected: FAIL

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 Nick Alcock changed: What|Removed |Added Status|WAITING |ASSIGNED -- You are receiving this mai

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 --- Comment #9 from Nick Alcock --- On 20 Sep 2022, slyich at gmail dot com spake thusly: > Seems to build binutils just fine! Detected `nm -p` command option. Great! It'll go in the next tranche, and probably be backported to 2.39. (But that

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-20 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 --- Comment #7 from Nick Alcock --- (Sorry for delay: post-conf collapse, UK bank holiday, massive change of monitor configuration meaning my displays were scattered all around the room for a day, etc) On 14 Sep 2022, slyich at gmail dot com

[Bug libctf/27305] relinking libctf during install does not find libbfd

2022-09-20 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27305 --- Comment #8 from Nick Alcock --- ... any movement on this? -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2022-09-20 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|WAITING

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-13 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-13 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #5 from Nick Alcock

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-13 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 --- Comment #4 from Nick Alcock --- Oh this gets more fun. We can't use the exit code because some nm's return a nonzero exit code if no symbols are found! I'll have to add a grosser hack, looking for the string 'invalid argument' (in the C lo

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-05 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 --- Comment #3 from Nick Alcock --- Having nm be a shell wrapper should be fine (I've been testing some of the odder edge cases that way). That's one reason we look through $PATH to find it ;) -- You are receiving this mail because: You are

[Bug libctf/29547] binutils-2.39: fails to build against cctools nm (no '-B' option support)

2022-09-05 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29547 Nick Alcock changed: What|Removed |Added Ever confirmed|0 |1 Status|UNCONFIRMED

[Bug libctf/29242] ld crash when deduplicating CTF from multiple .o files with the same name

2022-06-28 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29242 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/29242] ld crash when deduplicating CTF from multiple .o files with the same name

2022-06-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29242 --- Comment #3 from Nick Alcock --- Fix will be in 2.39. (Backport to 2.38 under test.) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/29242] ld crash when deduplicating CTF from multiple .o files with the same name

2022-06-10 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=29242 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/29242] New: ld crash when deduplicating CTF from multiple .o files with the same name

2022-06-10 Thread nick.alcock at oracle dot com
: normal Priority: P2 Component: libctf Assignee: unassigned at sourceware dot org Reporter: nick.alcock at oracle dot com Target Milestone: --- We observe on Gentoo a crash when linking Mesa 22.0.3 when compiled with -gctf. GDB reports: Starting program: /usr/bin

[Bug libctf/28933] buffer overflow on powerpc-linux

2022-03-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28933 Nick Alcock changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug libctf/28933] buffer overflow on powerpc-linux

2022-03-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28933 --- Comment #5 from Nick Alcock --- This unchecked length is only an overrun in the uncompressed-and-corrupted foreign-endian CTF case (it's still wrong if the CTF is uncompressed but native-endian, but it's only used at serialization time, wh

[Bug libctf/28933] buffer overflow on powerpc-linux

2022-03-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28933 --- Comment #4 from Nick Alcock --- Aha! Yep, that's got it. Thank you, your object file was very helpful. Now to fix it... -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/28933] buffer overflow on powerpc-linux

2022-03-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28933 --- Comment #2 from Nick Alcock --- FWIW, I cannot replicate this: not with the x86->ppc cross shown here, nor on ppc native, nor on ppc64. Nonetheless we should armour against this. I'll see what I can do... -- You are receiving this mail b

[Bug libctf/28933] buffer overflow on powerpc-linux

2022-03-03 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- Interesting! I routinely do both, so this must be a recent regression (well, ok, as recent as a few months ago. I'll get back to libctf soon.) This is assembler input for a corrupted CTF dict, b

[Bug libctf/28545] cross compile incorrectly using host libraries in install relink

2021-11-11 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28545 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #11 from Nick Alcoc

[Bug libctf/28545] cross compile incorrectly using host libraries in install relink

2021-11-09 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=28545 Nick Alcock changed: What|Removed |Added CC||nick.alcock at oracle dot com

[Bug libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-11-09 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #25 from Nick Alcock --- Thanks for the heads-up! -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-29 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27967 --- Comment #5 from Nick Alcock --- Mail sent out to binutils@ for review. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-28 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27967 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|WAITING --- Comment #4 from Nick Alcock

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-22 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27967 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug binutils/27967] Build failure on solaris-11 ld: fatal: option --version-script requires option -z gnu-version-script-compat to be specified

2021-06-22 Thread nick.alcock at oracle dot com
||nick.alcock at oracle dot com Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #3 from Nick Alcock --- Hm. --gnu-version-script and -z gnu-version-script appear to be recent enough that no machines in the

[Bug libctf/27305] relinking libctf during install does not find libbfd

2021-06-16 Thread nick.alcock at oracle dot com
||2021-06-15 Status|UNCONFIRMED |WAITING CC||nick.alcock at oracle dot com --- Comment #2 from Nick Alcock --- This is probably a duplicate of bug 27360. Could you try the users/nalcock/libctf-install-relink branch

[Bug libctf/25155] libctf directory doesn't compile with MinGW

2021-06-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25155 Nick Alcock changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libctf/27305] relinking libctf during install does not find libbfd

2021-06-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27305 --- Comment #5 from Nick Alcock --- The Source Mage bug is probably a different problem again, and I think it's more a Source Mage problem really. It is in general not safe to remove toolchain binaries completely before 'make install' for prec

[Bug libctf/27305] relinking libctf during install does not find libbfd

2021-06-16 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27305 --- Comment #6 from Nick Alcock --- (... if Source Mage always removes packages before installing them, how does it install make or coreutils? I suppose I should download it and have a look!) -- You are receiving this mail because: You are o

  1   2   >