[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gcl-devel] -ffunction-sections and profiling

From: Camm Maguire
Subject: [Gcl-devel] -ffunction-sections and profiling
Date: Fri, 17 Jun 2005 12:00:29 -0400
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (Unebigory ōmae) APEL/10.3 Emacs/21.2 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)

Greetings!  gcl, maxima, acl2, and axiom on hppa all make use of the
-ffunction-sections workaround to certain limitations in the linker
which I don't fully understand.  This has worked well now for a long
time.  The following issue has recently arisen:

gcc -c -g -Wall -DVOL=volatile -fsigned-char -pipe -pg -g -ffunction-sections 
-fPIC gcl_pcl_precom2.c
cc1: warning: -ffunction-sections disabled; it makes profiling impossible

gcc -o raw_pcl_gcl  \
        -L.   -Wl,-Map raw_pcl_gcl_map   -lpcl_gcl -Wl,-T 
../unixport/gcl.script   -lm  -pg -ldl -rdynamic -lc -lgclp 
/usr/bin/ld: ./libpcl_gcl.a(gcl_pcl_precom2.o)(.text+0x40450): cannot reach 
000009f4__mcount@@GLIBC_2.2+0, recompile with -ffunction-sections
/usr/bin/ld: ./libpcl_gcl.a(gcl_pcl_precom2.o)(.text+0x40450): cannot handle 
R_PARISC_PCREL17F for _mcount@@GLIBC_2.2
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

Can one not use gprof profiling on hppa?

Take care,
Camm Maguire                                            address@hidden
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]