[Bug libctf/25216] libctf doesn't respect a build configured with --with-system-zlib

2019-11-22 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- Hm, curious. I build with --with-system-zlib all the time, you'd think I'd have noticed this. Will look into it. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2019-11-22 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 Nick Alcock changed: What|Removed |Added Component|binutils|libctf -- You are receiving this mail

[Bug libctf/25216] libctf doesn't respect a build configured with --with-system-zlib

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

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-10-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 Nick Alcock changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-10-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 Nick Alcock changed: What|Removed |Added CC|nix at esperi dot org.uk |nick.alcock at oracle dot com

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

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

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-10-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #2 from Nick Alcock --- (For the avoidance of doubt: the commenter above was me, logged in under the wrong bugzilla account.) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-10-21 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #4 from Nick Alcock --- The C compiler shouldn't affect anything here: the linker in use is what matters. I'll try to get tcc working in a bit, but in the absence of that you could try to figure out which symbol in ctf-open-bfd.c

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-10-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #8 from Nick Alcock --- Nice diagnosis! Looks like there are some bugs in busybox and tcc to fix. I agree that the first three things you reported are bugs, and I'll fix them once I get a spare moment. Thanks for the report! --

[Bug binutils/25120] Portability issues in binutils 2.33 due to libctf

2019-11-20 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #12 from Nick Alcock --- Thanks! I already have that locally -- I really should finish testing and submit everything. Simply removing __thread won't do, unfortunately: it makes libctf even less threadsafe than it already is, and

[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-02-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #16 from Nick Alcock --- Clearly I should get back to this. Sorry for the near-complete absence: I've been digging away at obstinate bugs in the CTF deduplicator... -- You are receiving this mail because: You are on the CC list

[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-01-03 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #14 from Nick Alcock --- CTF is not ELF-specific. The only intrinsically ELF-specific portion of libctf is the machinery which associates symbol table entries with CTF entries, and that isn't even fully implemented yet (because I

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

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

[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-05-14 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #18 from Nick Alcock --- I am not dead (and am in fact working on nothing but libctf). Sorry, I fell behind while doing piles of linker dedup work: it was a pain, with at least two designs that fell apart at the last minute, but

[Bug libctf/25120] Portability issues in binutils 2.33 due to libctf

2020-06-25 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25120 --- Comment #19 from Nick Alcock --- Sent rebased-and-tested series for review. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/26934] [2.36 Regression] ctf-dump.c:406:4: error: format not a string literal and no format arguments [-Werror=format-security]

2020-11-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26934 Nick Alcock changed: What|Removed |Added Status|NEW |ASSIGNED -- You are receiving this

[Bug libctf/26934] [2.36 Regression] ctf-dump.c:406:4: error: format not a string literal and no format arguments [-Werror=format-security]

2020-11-24 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=26934 Nick Alcock changed: What|Removed |Added Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com

[Bug libctf/27117] In libctf, make AC_CONFIG_MACRO_DIR consistent with ACLOCAL_AMFLAGS

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

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250 --- Comment #7 from Nick Alcock --- OK, I'll work on upstreaming it. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread nick.alcock at oracle dot com
|1 Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com Status|UNCONFIRMED |ASSIGNED -- You are receiving this mail because: You are on the CC list for the bug.

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250 --- Comment #3 from Nick Alcock --- Ohhh I bet I know what it is. You'll need to roll back by sticking the old ld in place (I hope you have a copy) or roll forward by hand-copying .libs/libctf.so.0 into place in /usr/local. The problem is

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

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

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-26 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250 --- Comment #4 from Nick Alcock --- Created attachment 13159 --> https://sourceware.org/bugzilla/attachment.cgi?id=13159=edit Fix ld-versus-libctf installation ordering -- You are receiving this mail because: You are on the CC list for

[Bug libctf/27297] libctf.a malformed, build fails on x86_64-apple-darwin18.7.0

2021-02-02 Thread nick.alcock at oracle dot com
||nick.alcock at oracle dot com Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com --- Comment #3 from Nick Alcock --- Replicated. Working on a fix. -- You are receiving this mail because: You are on the CC list for the bug.

[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 #4 from Nick Alcock --- That's extremely odd. What is the contents of /opt/emlix/test/sysroot/usr/lib? In particular, is libbfd.{so,a} of any description visible in there after the failed installation? Because it should be: bfd is

[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

[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

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

2021-06-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #20 from Nick Alcock --- ... never mind, doing that regresses elsewhere. Still looking at it, I'm sure this is soluble ) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/27297] libctf.a malformed, build fails on x86_64-apple-darwin18.7.0

2021-06-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27297 --- Comment #8 from Nick Alcock --- Now I know the cause of that bug: no, these are unrelated (and a separate fix is needed for that bug). -- 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

2021-06-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #21 from Nick Alcock --- OK, try the users/nalcock/libctf-install-relink branch now. Still testing here, but things are looking better (make check passing and install-time relinking always linking against the libiberty in the

[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

[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 libctf/27360] libctf.so.0: undefined symbol: bsearch_r

2021-06-15 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #19 from Nick Alcock --- After a lot of struggling, I can now trigger an install-time relink and see it triggering searches of very much the wrong place for libiberty.a (the install tree, even if --enable-install-libiberty was not

[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/27360] libctf.so.0: undefined symbol: bsearch_r

2021-05-17 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #18 from Nick Alcock --- Yeah, that's only true if the distributor chooses to install the iibiberty.a from GCC in /usr/lib (or, I suppose, the one from a sufficiently recnet binutils). I do still want to figure out how to fix

[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

[Bug binutils/27250] Installation of 2.36 fails with 'LIBCTF_1.1 not found' followed by 'relink' suggestion

2021-01-27 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27250 Nick Alcock changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:

2021-03-23 Thread nick.alcock at oracle dot com
|1 Status|UNCONFIRMED |ASSIGNED Component|binutils|libctf Assignee|unassigned at sourceware dot org |nick.alcock at oracle dot com --- Comment #1 from Nick Alcock --- Thanks for the report! Confirmed

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:

2021-03-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27628 --- Comment #2 from Nick Alcock --- Diagnosed. This is fallout from my recent dtd revamping, so does not affect 2.36. It relates specifically to functions with no arguments, but of course those are quite common... there is also a much older

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:

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

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:

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

[Bug libctf/27628] UBSAN error: binutils-gdb/libctf/ctf-serialize.c:852:4:

2021-03-23 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27628 Nick Alcock changed: What|Removed |Added Status|WAITING |ASSIGNED -- You are receiving this

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

2021-03-18 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27482 Nick Alcock changed: What|Removed |Added Status|WAITING |ASSIGNED -- You are receiving this

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

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

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

2021-03-10 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #7 from Nick Alcock --- This is probably related to the version of binutils installed *before* you do a make install. What version are you installing on top of? This may be a dup of #27482: could you see if the

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

2021-03-09 Thread nick.alcock at oracle dot com
|1 CC||nick.alcock at oracle dot com Last reconfirmed||2021-03-09 --- Comment #5 from Nick Alcock --- This suggests that libctf.so has not had needed symbols from libiberty built into it properly

[Bug libctf/27297] libctf.a malformed, build fails on x86_64-apple-darwin18.7.0

2021-03-09 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27297 --- Comment #7 from Nick Alcock --- Quite possibly, or at least I don't see that failure with the reported replication mechanism on binutils master: I'll update that bug too. -- You are receiving this mail because: You are on the CC list

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

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

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

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

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

2021-03-22 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #9 from Nick Alcock --- OK, I'm fairly sure this is fixed on master now -- could you give it a try? (It might well be fixed on the 2.36 branch as well.) -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

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

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

2021-03-02 Thread nick.alcock at oracle dot com
at sourceware dot org |nick.alcock at oracle dot com CC||nick.alcock at oracle dot com Last reconfirmed||2021-03-02 Ever confirmed|0 |1 --- Comment #1 from Nick Alcock --- Ugh. I do

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

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

[Bug libctf/27482] parallel make -j 16 install falls over in 2.36

2021-03-04 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27482 --- Comment #4 from Nick Alcock --- ./configure --disable-gdb ... should do what you want. -- You are receiving this mail because: You are on the CC list for the bug.

[Bug libctf/27297] libctf.a malformed, build fails on x86_64-apple-darwin18.7.0

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

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

2021-04-12 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #15 from Nick Alcock --- The real question is where the -L/usr/lib is coming from. If you dig into config.status it should become clear. I bet this is derived from some .la file somewhere, so that libtool thinks it needs

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

2021-04-09 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #11 from Nick Alcock --- I can confirm that libctf is being relinked during install (though ld does not). However, for me, this does not fail: we have always installed libbfd first and the link works. I think I need a full log of

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

2021-04-09 Thread nick.alcock at oracle dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=27360 --- Comment #12 from Nick Alcock --- In particular, the relink line I see is: cd /home/oranix/oracle/private/binutils-gdb/foo/libctf; /bin/sh /home/oranix/oracle/private/binutils-gdb/foo/libctf/libtool --tag CC --mode=relink gcc -std=gnu99

[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

[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 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/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,

[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

[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-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, but we

[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/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

[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/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-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] 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/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/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-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

[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

[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

[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-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/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

[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/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/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/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 past

[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

[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

[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

[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/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/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/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/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 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/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

[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