.eh_frame section on alpha

Jakub Jelinek jakub@redhat.com
Tue Jan 4 22:40:00 GMT 2005


On Wed, Jan 05, 2005 at 08:27:20AM +1100, Simon Burge wrote:
> On Tue, Jan 04, 2005 at 09:51:11AM -0800, Richard Henderson wrote:
> 
> > On Tue, Jan 04, 2005 at 10:14:03AM +0000, Nick Clifton wrote:
> > > Presumably yes.  But I assume that the feeling is that invoking an 
> > > assembler switch is simpler for the user than requiring them to write or 
> > > edit linker scripts.
> > 
> > If you're writing boot loaders, you're already writing linker scripts.
> 
> We currently don't use a linker script.  Here's the complete linker
> line:
> 
> alpha--netbsd-ld -Ttext 0x20000000 -N -e start -o bootxx_ffs.sym \
>   start.o bootxx.o booted_dev.o blkdev.o prom.o prom_disp.o putstr.o \
>   panic_putstr.o lib/sa/libsa.a kern/libkern.a -Map bootxx_ffs.map
> 
> Since we don't already use (and therefore have to maintain) a separate
> linker script, a command line option to not generate these new .eh_frame
> sections seems like the cleanest solution to me.

Hmm, doing
alpha--netbsd-ld -Ttext 0x20000000 -N --verbose 2>&1 \
  | sed -n '/^==========/,/^===========/{/^========/d;s,^[[:blank:]]*\.eh_frame[[:blank:]]*:,/DISCARD/ ,;p}' \
  > bootxx_ffs.lds
... -T bootxxxx_ffs.lds
doesn't seem to be much harder, does it?

	Jakub



More information about the Binutils mailing list