[Bug 249121] program compiled with -pg produces ld-elf abort
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Sep 5 01:13:17 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249121
Bug ID: 249121
Summary: program compiled with -pg produces ld-elf abort
Product: Base System
Version: CURRENT
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: gnu
Assignee: bugs at FreeBSD.org
Reporter: wsh at riski.sh
Attempting to profile my code with gprof.
Currently compiling with clang with arguments;
-Weverything
-Werror
-Wpedantic
-O2
-g
-pg
Without -pg program runs perfectly fine. With -pg lib-elf haults with message
ld-elf.so.1: /lib/libc.so.7: Undefined symbol "__progname".
On FreeBSD-12.1-p8 I received a different error of unsupported relocation type
37 in non-plt relocations with the same compile options on the same executable.
I have attached the executable compiled with pg and no pg.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list