further hacks...
This commit is contained in:
parent
6aa347dbde
commit
0f8aeab54b
1 changed files with 35 additions and 4 deletions
|
|
@ -103,7 +103,7 @@ sed -i -e 's!^#define WANT_SSP$!// \0!g;
|
|||
|
||||
sed -i -e 's!strip !: !g' Makefile
|
||||
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os
|
||||
%global fixcflags -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables %xtra_fixcflags -Os -g3
|
||||
%global basemakeflags prefix=%_libdir/dietlibc BINDIR=%_bindir MAN1DIR=%_mandir/man1 COMMENT=: CFLAGS="$RPM_OPT_FLAGS %fixcflags" PDIET=%_libdir/dietlibc
|
||||
%global makeflags %basemakeflags
|
||||
|
||||
|
|
@ -113,13 +113,44 @@ done
|
|||
|
||||
|
||||
%build
|
||||
make %makeflags all %{?_smp_mflags} || :
|
||||
set +e
|
||||
make %makeflags all %{?_smp_mflags}
|
||||
|
||||
|
||||
### HACK: just for debugging ppc* issues
|
||||
strace -f -s9999 bin-ppc/diet gcc -D__dietlibc__ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector -Os -o bin-ppc/dnsd contrib/dnsd.c || :
|
||||
objdump -dS bin-ppc/diet
|
||||
objdir=bin-%{target_cpu}
|
||||
objdump -dS $objdir/diet
|
||||
|
||||
strace -s9999 $objdir/diet gcc -D__dietlibc__ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector -Os -o $objdir/dnsd contrib/dnsd.c
|
||||
|
||||
cat >/tmp/gdb.cmd <<EOF
|
||||
b execve
|
||||
r -v gcc -D__dietlibc__ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -fomit-frame-pointer -fno-exceptions -fno-asynchronous-unwind-tables -fno-stack-protector -Os -o $objdir/dnsd contrib/dnsd.c
|
||||
bt
|
||||
info registers
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
c
|
||||
bt
|
||||
info registers
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
up
|
||||
info locals
|
||||
quit
|
||||
EOF
|
||||
gdb --batch -x /tmp/gdb.cmd $objdir/diet
|
||||
|
||||
|
||||
set -e
|
||||
make %makeflags all %{?_smp_mflags}
|
||||
|
||||
# 'dyn' target is not SMP safe
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue