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

Bug#363456: marked as done (gcc-4.0: [Patch] Support PIE for M32R)



Your message dated Sun, 07 May 2006 09:32:14 -0700
with message-id <E1FcmB4-0002YU-M3@spohr.debian.org>
and subject line Bug#363456: fixed in gcc-4.0 4.0.3-3
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: gcc-4.0
Version: 4.0.3-1
Severity: wishlist
Tags: patch

Could you please add the following patch ?
This patch is to support PIE option.
It was applied to gcc-4.1-branch.

Regards,
Kazuhiro Inaoka
#! /bin/sh -e
# 
#
# DP: Author: Kazuhiro Inaoka
# DP: Status: in CVS 4.1-branch
# DP: PIE Support

if [ $# -eq 3 ] && [ "$2" = '-d' ]; then
    pdir="-d $3"
    dir="$3/"
elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
       -patch) patch $pdir -f --no-backup-if-mismatch -p1 < $0;;
       -unpatch) patch $pdir -f --no-backup-if-mismatch -R -p1 < $0;;
	*)
		echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
		exit 1;;
esac

exit 0

--- gcc-3.4.4/gcc/config.gcc.org	2006-04-19 16:16:31.000000000 +0900
+++ gcc-3.4.4/gcc/config.gcc	2006-04-19 16:17:07.000000000 +0900
@@ -1293,7 +1293,6 @@
 	;;
 m32r-*-linux*)
 	tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} m32r/linux.h"
-	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 	# We override the tmake_file for linux -- why?
 	tmake_file="t-slibgcc-elf-ver m32r/t-linux"
 	gnu_ld=yes
@@ -1304,7 +1303,6 @@
  	;;
 m32rle-*-linux*)
 	tm_file="dbxelf.h elfos.h svr4.h linux.h m32r/little.h ${tm_file} m32r/linux.h"
-	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
 	# We override the tmake_file for linux -- why?
 	tmake_file="t-slibgcc-elf-ver m32r/t-linux"
 	gnu_ld=yes
--- gcc-3.4.4/gcc/config/m32r/m32r.h.org	2005-07-29 19:22:12.000000000 +0900
+++ gcc-3.4.4/gcc/config/m32r/m32r.h	2005-07-29 19:24:34.000000000 +0900
@@ -191,7 +191,7 @@
 
 /* Options to pass on to the assembler.  */
 #undef  ASM_SPEC
-#define ASM_SPEC "%{v} %(asm_cpu) %(relax) %{fpic:-K PIC} %{fPIC:-K PIC}"
+#define ASM_SPEC "%{v} %(asm_cpu) %(relax) %{fpic|fpie:-K PIC} %{fPIC|fPIE:-K PIC}"
 
 #define LINK_SPEC "%{v} %(link_cpu) %(relax)"
 
--- gcc-3.4.4/gcc/config/m32r/linux.h.org	2005-07-29 19:22:21.000000000 +0900
+++ gcc-3.4.4/gcc/config/m32r/linux.h	2005-07-29 19:24:50.000000000 +0900
@@ -85,14 +85,20 @@
     %{profile:-lc_p} %{!profile: -lc}}"
 
 #undef  STARTFILE_SPEC
+#if defined HAVE_LD_PIE
+#define STARTFILE_SPEC \
+  "%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}} \
+  crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}"
+#else
 #define STARTFILE_SPEC \
   "%{!shared: \
      %{pg:gcrt1.o%s} %{!pg:%{p:gcrt1.o%s} %{!p:crt1.o%s}}}\
    crti.o%s %{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+#endif
 
 #undef  ENDFILE_SPEC
 #define ENDFILE_SPEC \
-  "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
+  "%{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
 
 #undef  SUBTARGET_CPP_SPEC
 #define SUBTARGET_CPP_SPEC "\

--- End Message ---
--- Begin Message ---
Source: gcc-4.0
Source-Version: 4.0.3-3

We believe that the bug you reported is fixed in the latest version of
gcc-4.0, which is due to be installed in the Debian FTP archive:

cpp-4.0-doc_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/cpp-4.0-doc_4.0.3-3_all.deb
cpp-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/cpp-4.0_4.0.3-3_powerpc.deb
g++-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/g++-4.0_4.0.3-3_powerpc.deb
gcc-4.0-base_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/gcc-4.0-base_4.0.3-3_powerpc.deb
gcc-4.0-doc_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/gcc-4.0-doc_4.0.3-3_all.deb
gcc-4.0-locales_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/gcc-4.0-locales_4.0.3-3_all.deb
gcc-4.0_4.0.3-3.diff.gz
  to pool/main/g/gcc-4.0/gcc-4.0_4.0.3-3.diff.gz
gcc-4.0_4.0.3-3.dsc
  to pool/main/g/gcc-4.0/gcc-4.0_4.0.3-3.dsc
gcc-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/gcc-4.0_4.0.3-3_powerpc.deb
gfortran-4.0-doc_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/gfortran-4.0-doc_4.0.3-3_all.deb
gfortran-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/gfortran-4.0_4.0.3-3_powerpc.deb
gnat-4.0-doc_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/gnat-4.0-doc_4.0.3-3_all.deb
gnat-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/gnat-4.0_4.0.3-3_powerpc.deb
gobjc-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/gobjc-4.0_4.0.3-3_powerpc.deb
lib64gfortran0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/lib64gfortran0_4.0.3-3_powerpc.deb
lib64stdc++6-4.0-dbg_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/lib64stdc++6-4.0-dbg_4.0.3-3_powerpc.deb
libgfortran0-dev_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libgfortran0-dev_4.0.3-3_powerpc.deb
libgfortran0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libgfortran0_4.0.3-3_powerpc.deb
libgnat-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libgnat-4.0_4.0.3-3_powerpc.deb
libstdc++6-4.0-dbg_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libstdc++6-4.0-dbg_4.0.3-3_powerpc.deb
libstdc++6-4.0-dev_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libstdc++6-4.0-dev_4.0.3-3_powerpc.deb
libstdc++6-4.0-doc_4.0.3-3_all.deb
  to pool/main/g/gcc-4.0/libstdc++6-4.0-doc_4.0.3-3_all.deb
libstdc++6-4.0-pic_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/libstdc++6-4.0-pic_4.0.3-3_powerpc.deb
treelang-4.0_4.0.3-3_powerpc.deb
  to pool/main/g/gcc-4.0/treelang-4.0_4.0.3-3_powerpc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 363456@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-4.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun,  7 May 2006 10:11:42 +0000
Source: gcc-4.0
Binary: cpp-4.0 gcc-4.0-base gcc-4.0-soft-float gfortran-4.0 gcc-4.0 gcc-4.0-locales gnat-4.0-doc libgfortran0-dev libstdc++6-4.0-pic libstdc++6-4.0-dev lib32stdc++6-4.0-dbg libgcc2 cpp-4.0-doc gcc-4.0-hppa64 treelang-4.0 libgnat-4.0 libstdc++6-4.0-dbg gcc-4.0-doc libstdc++6-4.0-doc lib32gfortran0 gnat-4.0 g++-4.0 gfortran-4.0-doc lib64gfortran0 lib64stdc++6-4.0-dbg gobjc-4.0 libgfortran0
Architecture: source all powerpc
Version: 4.0.3-3
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 cpp-4.0    - The GNU C preprocessor
 cpp-4.0-doc - Documentation for the GNU C preprocessor (cpp)
 g++-4.0    - The GNU C++ compiler
 gcc-4.0    - The GNU C compiler
 gcc-4.0-base - The GNU Compiler Collection (base package)
 gcc-4.0-doc - Documentation for the GNU compilers (gcc, gobjc, g++)
 gcc-4.0-locales - The GNU C compiler (native language support files)
 gfortran-4.0 - The GNU Fortran 95 compiler
 gfortran-4.0-doc - Documentation for the GNU Fortran compiler (gfortran)
 gnat-4.0   - The GNU Ada compiler
 gnat-4.0-doc - Documentation for the GNU Ada compiler (gnat)
 gobjc-4.0  - The GNU Objective-C compiler
 lib64gfortran0 - Runtime library for GNU Fortran applications (64bit)
 lib64stdc++6-4.0-dbg - The GNU Standard C++ Library v3 (debugging files)
 libgfortran0 - Runtime library for GNU Fortran applications
 libgfortran0-dev - GNU Fortran library development
 libgnat-4.0 - Runtime library for GNU Ada applications
 libstdc++6-4.0-dbg - The GNU Standard C++ Library v3 (debugging files)
 libstdc++6-4.0-dev - The GNU Standard C++ Library v3 (development files)
 libstdc++6-4.0-doc - The GNU Standard C++ Library v3 (documentation files)
 libstdc++6-4.0-pic - The GNU Standard C++ Library v3 (shared library subset kit)
 treelang-4.0 - The GNU Treelang compiler
Closes: 357661 358773 358876 363456
Changes: 
 gcc-4.0 (4.0.3-3) unstable; urgency=low
 .
   * Build the lib32stdc++6-4.0-dbg and lib64stdc++6-4.0-dbg packages again.
     Do not include the _pic library in the libxxstdc++-dbg packages.
   * Update to SVN 20060507, taken from the gcc-4_0-branch.
   * Provide -dcv1 when cross-compiling (Pjotr Kourzanov). Closes: #357661.
   * Deduce softfloat and vfp (ARM) configure options (Pjotr Kourzanov).
     Closes: #358773.
   * PR27334: Conform to POSIX rules in single quoted strings. Closes: #358876.
   * Support PIE for M32R (Kazuhiro Inaoka). Closes:  #363456.
Files: 
 a43b979005cbf87f219a7428b85fe1e0 2175 devel standard gcc-4.0_4.0.3-3.dsc
 9c24ea44b9c75916394f9c0998adb3d6 675389 devel standard gcc-4.0_4.0.3-3.diff.gz
 2a920e2b778efd0b9cce544a775016d0 183292 doc optional cpp-4.0-doc_4.0.3-3_all.deb
 e0574b012974f8577b1cf39477d9cf5a 6072802 doc optional libstdc++6-4.0-doc_4.0.3-3_all.deb
 1c9681d872d4c8b85df5c59fee6c63f5 106000 doc optional gfortran-4.0-doc_4.0.3-3_all.deb
 d4b3be458bc4d7f7a0f994457ec9fd9c 946160 doc optional gnat-4.0-doc_4.0.3-3_all.deb
 378d482b49c718c52a5ab960c753f674 1578040 doc optional gcc-4.0-doc_4.0.3-3_all.deb
 6d354dc29750eb7cd902b20dcc03355c 1018064 devel optional gcc-4.0-locales_4.0.3-3_all.deb
 e7e74b0c90eadf1eaf1b710805e425dc 181692 devel required gcc-4.0-base_4.0.3-3_powerpc.deb
 262ae4aee8231181f48d7c63c57715c1 2302150 interpreters standard cpp-4.0_4.0.3-3_powerpc.deb
 786817d96f39be8eb3b484b3dc15c17d 2352676 devel optional gobjc-4.0_4.0.3-3_powerpc.deb
 8ea5ef1e3f4f03e4f981b4c34a5da7b8 2618240 devel standard g++-4.0_4.0.3-3_powerpc.deb
 2eee48d9f21dc9740982d01bf41f1d11 4975006 libdevel extra lib64stdc++6-4.0-dbg_4.0.3-3_powerpc.deb
 e944ddbe2a15bd0f7fbf34737ead5d2d 1581738 libdevel standard libstdc++6-4.0-dev_4.0.3-3_powerpc.deb
 af25dd539ef430e7fb281edec0285974 981710 libdevel extra libstdc++6-4.0-pic_4.0.3-3_powerpc.deb
 c7d7f21d2d67d309943fb84fdc352477 3847682 libdevel extra libstdc++6-4.0-dbg_4.0.3-3_powerpc.deb
 744a6cc9db50878006569ca8cc484168 115416 libs optional libgfortran0_4.0.3-3_powerpc.deb
 816487df24b614a733e354e7115919ac 114270 libs optional lib64gfortran0_4.0.3-3_powerpc.deb
 428edc66ea3ef3b4111c07bfa4f2d360 2422776 devel optional gfortran-4.0_4.0.3-3_powerpc.deb
 f5cb6d715b7a0bd65218acb4daef3741 300010 libdevel optional libgfortran0-dev_4.0.3-3_powerpc.deb
 7ba61d31511f0cb8f4d052adfbd7be52 931398 libs optional libgnat-4.0_4.0.3-3_powerpc.deb
 446a13fef204c1bfa3c1d46e10a7b71e 10601700 devel optional gnat-4.0_4.0.3-3_powerpc.deb
 f9210587271d39b68b94c69736bbe187 2172584 devel optional treelang-4.0_4.0.3-3_powerpc.deb
 802cf1b3f2f54b1d7341d842c9ad403b 549348 devel standard gcc-4.0_4.0.3-3_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)

iD8DBQFEXh6OStlRaw+TLJwRAk/xAJ9HTbkbc8sIW+YVBmWSAjXGAG6oxwCfQtrF
1GbiX/uV30kfeRqy3A+ibtg=
=t1XY
-----END PGP SIGNATURE-----


--- End Message ---

Reply to: