Workaround for short jump tables on PA-RISC.

The PA-RISC architecture requires special options for GCC to prevent
linker errors when libraries reach a certain size and / or complexity.
See http://mraw.org/blog/2007/10/10/Linking_on_hppa and gcc
documentation on -mlong-calls.
Add tests.
file(GENERATE): Use permissions of input file if present.
Merge topic 'fix-gcc-hppa' into next

c15764a6 Workaround for short jump tables on PA-RISC.
Merge topic 'file-GENERATE-permissions' into next

06cdab95 Add tests.
Merge topic 'file-GENERATE-permissions' into next

81afbbc0 file(GENERATE): Use permissions of input file if present.