Skip to Content.
Sympa Menu

sm-grimoire - Re: [SM-Grimoire] Stripping has no effect on some spells

sm-grimoire AT lists.ibiblio.org

Subject: Discussion of Spells and Grimoire items

List archive

Chronological Thread  
  • From: Andrew <afrayedknot AT thefrayedknot.armory.com>
  • To: sm-grimoire AT lists.ibiblio.org
  • Subject: Re: [SM-Grimoire] Stripping has no effect on some spells
  • Date: Sun, 2 Feb 2003 11:37:05 -0800

seeing as how im probably going to be gettings lots of email. Send your
results to strip AT t.armory.com instead of afrayedknot AT t.armory.com

it will make things easier for me.

On Sun, Feb 02, 2003 at 02:07:32PM -0500, Dufflebunk wrote:
> Andrew has volunteered to coalate results. Please only send him results
> if you are using the strip compile optimization. If you are unsure, here
> is a one liner that'll tell you if you have stripping on:
>
> ( . /etc/sorcery/config ; echo "$OPTIMIZATIONS" | grep -q "strip" && echo
> "You are stripping" || echo "You are too conservative to strip" )
>
> Here is the one liner in bash that'll print all the spells you have
> which have one or more executables or shared libs (ELF) which are also
> not stripped:
>
> for SPELL in `gaze installed | cut -d: -f1` ; do for FILE in `gaze install
> $SPELL` ; do if [ -x $FILE ] && LINE=`file "$FILE"` && echo "$LINE" | grep
> -q "ELF" ; then echo "$LINE" | grep -q "not stripped" && echo $SPELL ;
> continue 2; fi ; done ; done | sort
>
> It is sorted at the end to make Andrews job a bit easier (ie cat
> results.* | sort --merg ;).
>
> The easiest way to send him the results would be:
> for SPELL in `gaze installed | cut -d: -f1` ; do for FILE in `gaze install
> $SPELL` ; do if [ -x $FILE ] && LINE=`file "$FILE"` && echo "$LINE" | grep
> -q "ELF" ; then echo "$LINE" | grep -q "not stripped" && echo $SPELL ;
> continue 2; fi ; done ; done | sort > not_stripped.`hostname -s`.txt
> then to send the newly created file as an attachment to
> afrayedknot AT thefrayedknot.armory.com
>
>
>
> On Sun, 2003-02-02 at 13:29, Andrew wrote:
> > On Sun, Feb 02, 2003 at 07:23:06PM +0100, Robert Helgesson wrote:
> > > On Sun, Feb 02, 2003 at 07:20:49PM +0100, Robert Helgesson wrote:
> > > > Howdy,
> > > >
> > > > Seems as if some spells don't use the $LDFLAGS variable which is
> > > > defined
> > > > alongside $CFLAGS.
> > > >
> > > > LDFLAGS contain for example flags to enable the stripping and
> > > > combreloc
> > > > features.
> > > >
> > > > Spells which are affected are pretty much those that need some special
> > > > treatment to make use of the $CFLAGS content.
> > >
> > > Meta bug related to this can be found at:
> > >
> > > http://bugs.sourcemage.org/show_bug.cgi?id=2462
> > >
> > perhaps we could write a script to go through all our binaries and report
> > which ones arent stripped, then the spell they are from? If a bunch of
> > us do it, we can figure out which spells are at fault and generate bugs
> > for them.
> >
> > something like:
> > for each in `ls -l /bin /usr/bin /usr/X11/bin`; do if [ file $each|grep
> > "not stripped" ] ; then gaze from $each ; fi ; done|sort|uniq
> >
> > i dont know conditionals well in bash, but that would be the basic idea.
> >
> >
> > Andrew
> > > --
> > > / Robert Helgesson |-- rycee AT home.se --\
> > > \-- ~~~~~~~~~~~~~~~~ --| http://www.rycee.cx/ /
> > > _______________________________________________
> > > SM-Grimoire mailing list
> > > SM-Grimoire AT lists.ibiblio.org
> > > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
> > _______________________________________________
> > SM-Grimoire mailing list
> > SM-Grimoire AT lists.ibiblio.org
> > http://lists.ibiblio.org/mailman/listinfo/sm-grimoire
>




Archive powered by MHonArc 2.6.24.

Top of Page