mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-19 15:23:30 +08:00
[ARM] Fix warning cannot find thumb start symbol
In case params.thumb_entry_symbol has its default NULL value, using it to print a warning in gld${EMULATION_NAME}_finish results in a crash. Use h->root.string instead which either points to params.thumb_entry_symbol name or to entry_symbol name. 2018-07-09 Christophe Lyon <christophe.lyon@linaro.org> * emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use the right symbol name in case of warning. Change-Id: Iec61a833c0ad538b1440bf326ba67834c314dd63
This commit is contained in:
parent
dc7fc9ab5d
commit
f5a1cdde80
@ -1,3 +1,8 @@
|
||||
2018-07-09 Christophe Lyon <christophe.lyon@linaro.org>
|
||||
|
||||
* emultempl/armelf.em (gld${EMULATION_NAME}_finish): Use the right
|
||||
symbol name in case of warning.
|
||||
|
||||
2018-07-05 Jim Wilson <jimw@sifive.com>
|
||||
|
||||
* configure.tgt (riscv-*-*): Add as an alias for riscv32*-*-*.
|
||||
|
@ -499,7 +499,7 @@ gld${EMULATION_NAME}_finish (void)
|
||||
}
|
||||
else
|
||||
einfo (_("%P: warning: cannot find thumb start symbol %s\n"),
|
||||
params.thumb_entry_symbol);
|
||||
h->root.string);
|
||||
}
|
||||
|
||||
/* This is a convenient point to tell BFD about target specific flags.
|
||||
|
Loading…
Reference in New Issue
Block a user