PR22127, as segfaults assembling invalid .reloc
authorAlan Modra <amodra@gmail.com>
Thu, 14 Sep 2017 00:49:31 +0000 (10:19 +0930)
committerAlan Modra <amodra@gmail.com>
Thu, 14 Sep 2017 01:05:17 +0000 (10:35 +0930)
commit2578f2f307f7e80caa0bce32c7fa880d579e736b
tree4c3d552a24271680913057f9b487ecc3d81c3fd7
parent0952b7101e85b205f93389216a7733caccb8f267
PR22127, as segfaults assembling invalid .reloc

"sec" gets set to NULL on errors in the offset expression.  This patch
disables part of the reloc expression processing that needs "sec"
valid.  I didn't disable the entire reloc expression handling so that
errors in the reloc expression are reported even when the offset
expression has an error.

PR 22127
* write.c (resolve_reloc_expr_symbols): Don't segfault when
sec has been set to NULL.
gas/ChangeLog
gas/write.c
This page took 0.024083 seconds and 4 git commands to generate.