Bug#434937: gcc-4.2: Profiling on Hurd procudes a non-working executable
Package: gcc-4.2
Version: 4.2.1-0
Severity: normal
Tags: patch
Profiling support is broken on Hurd due to a mistake within GCC's internal spec files.
I've included a patch to fix the default spec file.
Michael
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: hurd-i386 (i686-AT386)
Kernel: GNU-Mach 1.3.99/Hurd-0.3
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash
Versions of packages gcc-4.2 depends on:
ii binutils 2.17cvs20070426-8 The GNU assembler, linker and bina
ii cpp-4.2 4.2.1-0 The GNU C preprocessor
ii gcc-4.2-base 4.2.1-0 The GNU Compiler Collection (base
ii libc0.3 2.5-11+hurd.1 GNU C Library: Shared libraries
ii libgcc1 1:4.2.1-0 GCC support library
ii libgomp1 4.2.1-0 GCC OpenMP (GOMP) support library
Versions of packages gcc-4.2 recommends:
pn libmudflap0-4.2-dev <none> (no description available)
-- no debconf information
*** ../gcc-4.2-profiling.patch
--- gcc-4.2-4.2-20070707/src/gcc/config/i386/gnu.h 2007-07-26 23:39:43.620000000 -0400
+++ gcc-4.2-4.2-20070707/src-save/gcc/config/i386/gnu.h 2007-07-25 11:47:43.830000000 -0400
@@ -29,8 +29,8 @@
#define STARTFILE_SPEC \
"%{!shared: \
%{!static: \
- %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}} \
- %{static:crt0.o%s}} \
+ %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt1.o%s}}} \
+ %{static: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}}} \
crti.o%s %{static:crtbeginT.o%s}\
%{!static:%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}}"
Reply to: