waf: Post-process object file
Chris Johns
chrisj at rtems.org
Wed Nov 11 07:33:35 UTC 2015
On 10/11/2015 8:35 pm, Sebastian Huber wrote:
> Hello,
>
> for the libbsd we have the problem that we expose a lot of symbols from
> the FreeBSD kernel space to the applications. There are several known
> conflicts, e.g. FreeBSD log() vs. standard math library log(). The
> current approach to solve this issue is to generate a file with lots of
>
> #define xx _bsd_xx
> ...
>
> defines to rename at C pre-processor level. This is however quite
> brittle and doesn't work in general. An alternative would be to
> post-process the kernel-space object files with something like this
>
> objcopy --redefine-syms redefines.txt x.o
>
> with a redefines.txt
>
> xx=_bsd_xx
> ...
>
> My question is now: how can I add this post-processing step to the waf
> based libbsd build system?
>
Is this per object file or after the library has been made?
Chris
More information about the devel
mailing list