Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Sep 2020 01:13:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 249121] program compiled with -pg produces ld-elf abort
Message-ID:  <bug-249121-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249121

            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@FreeBSD.org
          Reporter: wsh@riski.sh

Attempting to profile my code with gprof.

Currently compiling with clang with arguments;=20
    -Weverything
    -Werror
    -Wpedantic
    -O2
    -g
    -pg

Without -pg program runs perfectly fine. With -pg lib-elf haults with messa=
ge
ld-elf.so.1: /lib/libc.so.7: Undefined symbol "__progname".

On FreeBSD-12.1-p8 I received a different error of unsupported relocation t=
ype
37 in non-plt relocations with the same compile options on the same executa=
ble.

I have attached the executable compiled with pg and no pg.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-249121-227>