Fix seg-faults when fetching the frags of local symbols.
authorChen Gang <gang.chen.5i5j@gmail.com>
Fri, 13 Jun 2014 15:07:21 +0000 (16:07 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 13 Jun 2014 15:07:21 +0000 (16:07 +0100)
commitf26c187e2933a0e99a9fbe1ccbcd97260c74b913
treea5bcaaef8643bc173d7e0aa54046d5bf350a54a4
parent2132b4072fb1368afbc0405f909bdf67fcfee427
Fix seg-faults when fetching the frags of local symbols.

* config/tc-score7.c: (s7_b32_relax_to_b16): Use symbol_get_frag() to access a symbol's frag.
* config/tc-score.c (s3_relax_branch_inst16): Likewise.
(s3_relax_cmpbranch_inst32): Likewise.
gas/ChangeLog
gas/config/tc-score.c
gas/config/tc-score7.c