Oops. Error in file comment in padding.c
Rename functions for sections.
Add function for validating any optional section.

Also add a file for such generic functions.