LD: Avoid a division by zero page size with SEGMENT_START handling
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 14 Sep 2018 19:22:56 +0000 (20:22 +0100)
committerMaciej W. Rozycki <macro@linux-mips.org>
Fri, 14 Sep 2018 19:22:56 +0000 (20:22 +0100)
commita000f8817b32eadd4aeadf9185634350a59e6649
tree6a834679a3e5632bff6b92b9f64dbe7e92c932a4
parent606cc04085a08f5e04eda6ef67f516bf81b691a1
LD: Avoid a division by zero page size with SEGMENT_START handling

Avoid a division by zero and thus a linker crash in SEGMENT_START script
builtin function handling, by not checking the value supplied with a
`-T' command-line override against the maximum page size if that has not
been set.

ld/
* ldexp.c (fold_binary): Check that `config.maxpagesize' is
non-zero before using it as a divisor.
ld/ChangeLog
ld/ldexp.c
This page took 0.026651 seconds and 4 git commands to generate.