s390/modules: add relocation overflow checking
authorMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 11 Jan 2013 12:15:35 +0000 (13:15 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 14 Feb 2013 14:55:03 +0000 (15:55 +0100)
Given enough debug options some modules can grow large enough
that the GOT table gets bigger than 4K. On s390 the modules
are compiled with -fpic which limits the GOT to 4K. The end
result is a module that is loaded but won't work.

Add a sanity check to apply_rela and return with an error if
a relocation error is detected for a module.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>

No differences found