Remove extra ";" to prevent warnings at compilation with GCC -pedantic option
Add a validation for the case when dynamic section has no data

Signed-off-by: Serge Lamikhov-Center <to_serge@users.sourceforge.net>