diff options
Diffstat (limited to 'ld')
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/emultempl/xtensaelf.em | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 279ece8..a39e29e 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2014-07-10 Max Filippov <jcmvbkbc@gmail.com> + + * emultempl/xtensaelf.em (is_inconsistent_linkonce_section): + correctly handle missing dot in section name after + ".gnu.linkonce.prop.". + 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> * scripttempl/avr.sc: Remove KEEP for .data and diff --git a/ld/emultempl/xtensaelf.em b/ld/emultempl/xtensaelf.em index 151eea4..948d18d 100644 --- a/ld/emultempl/xtensaelf.em +++ b/ld/emultempl/xtensaelf.em @@ -1310,7 +1310,7 @@ is_inconsistent_linkonce_section (asection *sec) for Tensilica's XCC compiler. */ name = sec_name + linkonce_len; if (CONST_STRNEQ (name, "prop.")) - name = strchr (name + 5, '.') + 1; + name = strchr (name + 5, '.') ? strchr (name + 5, '.') + 1 : name + 5; else if (name[1] == '.' && (name[0] == 'p' || name[0] == 'e' || name[0] == 'h')) name += 2; |