summaryrefslogtreecommitdiff
path: root/bfd/elf32-xtensa.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2004-05-17 20:33:33 +0000
committerBob Wilson <bob.wilson@acm.org>2004-05-17 20:33:33 +0000
commit0e32d0f8844893d00f1dbe7d1d0b1f706c053433 (patch)
tree03798709f9f55d7e5c4a11235887fd2e786dfe7f /bfd/elf32-xtensa.c
parentf1313404a1c0d7ddae6df20f0d6b23c085a03976 (diff)
downloadgdb-0e32d0f8844893d00f1dbe7d1d0b1f706c053433.tar.gz
* 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/elf32-xtensa.c')
-rw-r--r--bfd/elf32-xtensa.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c
index 710a1a6c281..5e4d3ad2f65 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;