This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/12537] New: g++ generates writeable text sections
- From: "olh at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Oct 2003 08:28:29 -0000
- Subject: [Bug c++/12537] New: g++ generates writeable text sections
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12537
Summary: g++ generates writeable text sections
Product: gcc
Version: 3.3.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olh at suse dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: powerpc-linux
GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux
toolchain:~ $ /home/toolchain/obj33/obj-gcc/gcc/xgcc -shared-libgcc -B/home/toolchain/obj33/obj-gcc/gcc/ -nostdinc++ -L/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/src -L/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/src/.libs -B/home/toolchain/gcc33/powerpc-unknown-linux-gnu/bin/ -B/home/toolchain/gcc33/powerpc-unknown-linux-gnu/lib/ -isystem /home/toolchain/gcc33/powerpc-unknown-linux-gnu/include -msoft-float -fPIC -mstrict-align -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/../gcc -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/../include -I/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/powerpc-unknown-linux-gnu -I/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++ -O1 -fsigned-char -g -Wall -fmessage-length=0 -D_GNU_SOURCE -msoft-float -fPIC -mstrict-align -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -c /home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++/del_op.cc -fPIC -DPIC -o del_op.o --save-temps -v
Reading specs from /home/toolchain/obj33/obj-gcc/gcc/specs
Configured with: /home/toolchain/gcc-3_3-branch/configure --prefix=/home/toolchain/gcc33 --enable-languages=c,c++ --enable-version-specific-runtime-libs --disable-nls
Thread model: posix
gcc version 3.3.2 20031004 (prerelease)
/home/toolchain/obj33/obj-gcc/gcc/cc1plus -E -D__GNUG__=3 -quiet -nostdinc++ -v -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/../gcc -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/../include -I/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/powerpc-unknown-linux-gnu -I/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include -I/home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++ -iprefix /home/toolchain/obj33/obj-gcc/gcc/../lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.2/ -isystem /home/toolchain/obj33/obj-gcc/gcc/include -isystem /home/toolchain/gcc33/powerpc-unknown-linux-gnu/bin/include -isystem /home/toolchain/gcc33/powerpc-unknown-linux-gnu/lib/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE -D__PIC__=2 -D__pic__=2 -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix -D_GNU_SOURCE -DPIC -isystem /home/toolchain/gcc33/powerpc-unknown-linux-gnu/include /home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++/del_op.cc -msoft-float -mstrict-align -msoft-float -mstrict-align -Wall -Wall -Wno-format -W -Wwrite-strings -fPIC -fsigned-char -fmessage-length=0 -fPIC -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -fPIC -O1 del_op.ii
ignoring nonexistent directory "/home/toolchain/gcc33/powerpc-unknown-linux-gnu/bin/include"
ignoring nonexistent directory "/home/toolchain/gcc33/powerpc-unknown-linux-gnu/lib/include"
ignoring nonexistent directory "/home/toolchain/gcc33/powerpc-unknown-linux-gnu/include"
ignoring nonexistent directory "/home/toolchain/obj33/obj-gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.2/include"
ignoring nonexistent directory "/home/toolchain/obj33/obj-gcc/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.2/../../../../powerpc-unknown-linux-gnu/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/home/toolchain/gcc33/powerpc-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/toolchain/gcc-3_3-branch/gcc
/home/toolchain/gcc-3_3-branch/include
/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include/powerpc-unknown-linux-gnu
/home/toolchain/obj33/obj-gcc/powerpc-unknown-linux-gnu/nof/libstdc++-v3/include
/home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++
/home/toolchain/obj33/obj-gcc/gcc/include
/home/toolchain/gcc33/include
/home/toolchain/gcc33/lib/gcc-lib/powerpc-unknown-linux-gnu/3.3.2/include
/usr/include
End of search list.
/home/toolchain/obj33/obj-gcc/gcc/cc1plus -fpreprocessed del_op.ii -quiet -dumpbase del_op.cc -msoft-float -mstrict-align -msoft-float -mstrict-align -auxbase-strip del_op.o -g -O1 -Wall -Wall -Wno-format -W -Wwrite-strings -version -fPIC -fsigned-char -fmessage-length=0 -fPIC -fno-implicit-templates -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -fPIC -o del_op.s
GNU C++ version 3.3.2 20031004 (prerelease) (powerpc-unknown-linux-gnu)
compiled by GNU C version 3.3.2 20031004 (prerelease).
GGC heuristics: --param ggc-min-expand=72 --param ggc-min-heapsize=80369
/home/toolchain/gcc33/powerpc-unknown-linux-gnu/bin/as -mppc -V -Qy -K PIC -o del_op.o del_op.s
GNU assembler version 2.14.90 (powerpc-unknown-linux-gnu) using BFD version 2.14.90 20031004
del_op.s: Assembler messages:
del_op.s:13: Warning: setting incorrect section attributes for .text._ZdlPv
toolchain:~ $ grep -C2 .text._ZdlPv del_op.s
.file 2 "/home/toolchain/obj33/obj-gcc/gcc/include/stddef.h"
.file 3 "/home/toolchain/gcc-3_3-branch/libstdc++-v3/libsupc++/new"
.section .text._ZdlPv,"awx",@progbits
.align 2
.globl _ZdlPv
o-ton Modra:
<alanm> heh, writable text section. bug in gcc
> 3.3.2 blocker?
<alanm> yeah, i'd say so. this was current gcc-3.3 branch, ie. without any other patches?