Date: Fri, 6 Aug 2010 10:15:31 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG, doconnor@gsoft.com.au Subject: Re: Kernel symbol file alternate location Message-ID: <201008060815.o768FVGO025698@lurza.secnetix.de> In-Reply-To: <9616424E-440B-4D23-82D2-6615AC6F3CA5@gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel O'Connor wrote: > On 06/08/2010, at 16:59, Oliver Fromme wrote: > > > Yeah, I don't think it's hard to move them, however I'm worried what > > > it will break :) > > > > > > The only thing I can see that would have to change would be kgdb so > > > it tells gdb where to find the symbols. > > > > That's why I suggested to place symlinks in the kernel > > directory. No change to kgdb necessary. > > Ahh of course. > > Although that does make it harder because you have to modify all the > links when the old kernel is moved out of the way. Right. Maybe make a symlink to a directory, so only that symlink has to be changed: /boot/kernel/symbols -> /var/db/symbols/kernel /boot/kernel/kernel.symbols -> symbols/kernel.symbols /boot/kernel/acpi.symbols -> symbols/acpi.symbols .. and so on. When the kernel is rotated to kernel.old, only one symlink has to be changed: /boot/kernel.old/symbols -> /var/db/symbols/kernel.old Of course, /var/db is just an example off the top of my head. The symbols directory should be configurable via make.conf, too. > > It might even be possible to not install the symbol files > > at all, but keep them under /usr/obj, so the installkernel > > target would have to do nothing more than create symlinks. > > This could be controlled by a make.conf variable, like > > SYMLINK_SYMBOLS=YES ("NO" would be the existing behaviour > > of installing the actual symbol files in /boot/kernel). > > Hmm, I think they would need to go elsewhere otherwise they wouldn't > be available to people who do binary installs, hence the usefulness > of bug reports would go down. Right, I was thinking of developers only, who usually have a populated /usr/obj directory ... But there's a world full of non-developers, too. :-) Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "IRIX is about as stable as a one-legged drunk with hypothermia in a four-hundred mile per hour wind, balancing on a banana peel on a greased cookie sheet -- when someone throws him an elephant with bad breath and a worse temper." -- Ralf Hildebrandt
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008060815.o768FVGO025698>