diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-05-17 20:33:33 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-05-17 20:33:33 +0000 |
commit | 096c35a79055a343a0a00be2cc730dc7081bb3d7 (patch) | |
tree | 889b9cacd848bd0174c12bbe6f5ce08c37b3833f /bfd | |
parent | b2d65c0b3f25a0ab30d1a4cd6a4f9000b4af239a (diff) | |
download | fsf-binutils-gdb-096c35a79055a343a0a00be2cc730dc7081bb3d7.zip fsf-binutils-gdb-096c35a79055a343a0a00be2cc730dc7081bb3d7.tar.gz fsf-binutils-gdb-096c35a79055a343a0a00be2cc730dc7081bb3d7.tar.bz2 |
* elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
section names by inserting a new substring after .gnu.linkonce, except
for .gnu.linkonce.t.* where the "t." is replaced.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/elf32-xtensa.c | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 658846f..479cfcc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2004-05-17 Bob Wilson <bob.wilson@acm.org> + + * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce + section names by inserting a new substring after .gnu.linkonce, except + for .gnu.linkonce.t.* where the "t." is replaced. + 2004-05-17 Adam Nemet <anemet@lnxw.com> * config.bfd (sparc-*-lynxos* case): Add to obsolete list. diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index 710a1a6..5e4d3ad 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -5685,12 +5685,10 @@ xtensa_get_property_section_name (sec, base_name) prop_sec_name[linkonce_len + 1] = '.'; suffix = sec->name + linkonce_len; - while (*suffix) - { - suffix += 1; - if (suffix[-1] == '.') - break; - } + /* For backward compatibility, replace "t." instead of inserting + the new linkonce_kind. */ + if (strncmp (suffix, "t.", 2) == 0) + suffix += 2; strcpy (prop_sec_name + linkonce_len + 2, suffix); return prop_sec_name; |