[ARM] Fix warning cannot find thumb start symbol
authorChristophe Lyon <christophe.lyon@linaro.org>
Mon, 9 Jul 2018 07:45:46 +0000 (07:45 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Mon, 9 Jul 2018 07:47:24 +0000 (07:47 +0000)
commitf5a1cdde80a5cc5f1b86be7e94fb062d3fd4aca9
treea47a2e6e063ea668a42c749ba343907f8805a133
parentdc7fc9ab5dc4afe62af8703a26968acf08b4437e
[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
ld/ChangeLog
ld/emultempl/armelf.em