error in creating amd64 port rtld modules

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Fri Aug 31 06:36:16 PDT 2007


Noah yan wrote:
thanks Joerg, you are right. I checked with freebsd kmod.mk, amd64
module linking is special. After merged it in dfly, it is something
like this, i.e. use objcopy to create the rtld module:
[btw, it is "kld", not "rtld"]

ld  -r -d -o scsi_low.ko.debug scsi_low.o scsi_low_pisa.o
awk -f /home/yanyh/gitscm/dragonfly.cvs2git/sys/bus/cam/scsi/../../../conf/kmod_syms.awk
scsi_low.ko.debug  export_syms | xargs -J% objcopy % scsi_low.ko.debug
objcopy --only-keep-debug scsi_low.ko.debug scsi_low.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=scsi_low.ko.symbols
scsi_low.ko.debug scsi_low.ko
could you please change this so that all modules per default carry debug info, i.e. don't get stripped?

thanks
 simon




More information about the Kernel mailing list