Add FreeBSD PF Firewall to libbsd

Chris Johns chrisj at rtems.org
Wed Aug 3 06:46:18 UTC 2016


On 03/08/2016 16:15, Christian Mauderer wrote:
> Basically it boils down to the following: Currently I use an
> __attribute__ on every variable that has to be initialized. That makes
> updates a little more difficult because we would have to look out for
> changed variables. In addition it is difficult for function static
> variables.

Ok, this makes sense.

> A solution that would be simpler to maintain would be to manipulate the
> object file. I would use objcopy to rename all sections with initialized
> variables to put them into the linker set. This would be a little less
> obvious if you read only the c code but it would solve both problems
> mentioned above.

Having transparent source is more important.

> But it makes it necessary that the build system adds
> the object file manipulation step before it links the application. That
> is the point where I'm currently stuck.

Should I wait for this to happen before adding any new control logic to 
the build system?

Chris


More information about the devel mailing list