-nostdlib should imply -fno-stack-protector

Bug #77865 reported by Jeff Bailey
2
Affects Status Importance Assigned to Milestone
gcc-4.1 (Ubuntu)
Fix Released
Medium
Matthias Klose

Bug Description

Binary package hint: gcc-4.1

https://wiki.ubuntu.com/GccSsp lists a series of problems with SSP. A segment of those could be fixed automatically by implying -fno-stack-protector when -nostdlib is given. This should avoid the work arounds needed for the various bootloaders and libcs.

Related branches

Matthias Klose (doko)
Changed in gcc-4.1:
importance: Undecided → Medium
status: Unconfirmed → Confirmed
Matthias Klose (doko)
Changed in gcc-4.1:
assignee: nobody → doko
status: Confirmed → In Progress
Revision history for this message
Matthias Klose (doko) wrote :

gcc-4.1 (4.1.2-17ubuntu1) hardy; urgency=low

  * Merge with Debian; remaining changes:
    - Source tgz including GFDL documentation.
    - Regenerate the control file.

gcc-4.1 (4.1.2-17) unstable; urgency=low

  [Matthias Klose]
  * Update to the gcc-4_1-branch 20071019.
    - Fix PR target/33256 (mips).
    - Fix PR tree-optimization/33142, wrong code with VRP through ABS_EXPR.
      Closes: #429657.
    - Fix PR c++/29226, ICE in make_decl_rtl (closes: #388626).
    - Fix PR target/31641, ICE in s390_expand_setmem (closes: #385580).
  * Set the priority of the source package to optional.
  * Remove .la files from the biarch libstdc++ debug packages,
    conflict with the 3.4 package. Addresses: #440490.
  * Update Hurd fixes (Samuel Thibault).
  * When -fstack-protector is the default (Ubuntu), do not enable
    -fstack-protector when -nostdlib is specified. LP: #77865.
  * Add -g to BOOT_CFLAGS, set STAGE1_CFLAGS to -g -O, only pass
    other settings when required.
  * Fix installation of the s390 libstdc++ biarch headers.
  * Allow the powerpc build on a 32bit machine (without running the
    biarch testsuite).
  * Add niagara2 optimization support (David Miller).

  * Only remove libgcj7's classmap db if no other libgcj7* library is
    installed.
  * Disable building gcj for mipsel.

  * Update gpc to CVS 20070904.
  * debian/copyright: gpc is now licensed under the GPL3. The gpc
    changes are only found in the gpc-4.1 sources.
  * Loosen dependency of gpc-4.1 on gcc-4.1. LP: #145561.

  [Arthur Loiret]
  * Port on k*bsd*-gnu:
    - Apply Debian patch in upstream SVN. (target-ver-syms.sh,
      phobos/acinclude.m4, phobos/configure.in)
    - debian/control.m4: add kfreebsd-i386 and kfreebsd-amd64 to gdc
      Architecture list.
  * svn-gdc-updates.dpatch: Update to SVN 20070914.
    - Merge DMD 1.021
    - dmd-script, d-spec.c (lang_specific_driver): Support -debuglib= and
      -defaultlib= options.
    - phobos/std/stdio.d (readln): Use the result of getdelim correctly.
      (SF 1788195)
    - d-glue.cc (FuncDeclaration::toObjFile): Do not gimplify if there were
      errors. (Bugzilla 1415)
    - d-objfile.cc (outdata): Do not set TREE_CONSTANT on initializers.
      (Bugzilla 1453)
    - phobos/std/c/stdio.d: Define fpos_t correctly for Drawin.
       (Bugzilla 1469)
    - d-codegen.{h, cc}, d-glue.cc: Change rawArray to toDArray. Do
      not cast result to void[]. (Bugzilla 1490)
    - d-glue.cc, d-codegen.h, d-codegen.cc: Make it an error
      to reference a nested function without a body. (SF 1793594)
    - d-codegen.cc (convertTo, call): Prevent multiple re-evaluation
      of delgate. (Bugzilla 1492)

  * debian/rules.d/binary-d.mk: Add $(DEB_TARGET_GNU_TYPE) symlinks for
    gdc/gdmd binaries.
  * gdc-sqrt-double-cast.dpatch: disable (not removed yet) in rules.patch,
    should be fixed upstream.

  [Ludovic Brenta]
  * Disable building libgnatprj-dev and libgnatvsn-dev; now provided by
    gnat-4.2.

 -- Matthias Klose <email address hidden> Fri, 19 Oct 2007 11:47:37 +0200

Changed in gcc-4.1:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.