tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: .debug objects build rule need some care



On Tue, Jul 20, 2010 at 2:37 PM, Nicolas Joly <njoly%pasteur.fr@localhost> 
wrote:
>
> Ack, but i now rembember why i did it that way ...
>
> With the following construct, it won't work as the .gnu_debuglink
> section will record the file name to be opened for loading the debug
> symbols ... x.debug.tmp instead of installed x.debug file.
>
> ${_PROGDEBUG.${_P}}: ${_P}
>        ${_MKTARGET_CREATE}
>        ${OBJCOPY} --only-keep-debug ${_P} ${_PROGDEBUG.${_P}}.tmp
>        ${OBJCOPY} --strip-debug \
>            -R .gnu_debuglink
>        --add-gnu-debuglink=${_PROGDEBUG.${_P}}.tmp ${_P}
>        mv ${_PROGDEBUG.${_P}}.tmp ${_PROGDEBUG.${_P}}

I haven't tried but looking at this code: it looks like that passing
the non-tmp name to --add-gnu-debuglink and keeping .tmp everywhere
else may DTRT.

-- 
Julio Merino


Home | Main Index | Thread Index | Old Index