diff options
author | Rahul Chaudhry <rahulchaudhry@google.com> | 2017-09-16 01:25:47 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-09-16 01:25:47 +0000 |
commit | de307b61f3aa321d5e5d4e6e692a7dd611191eb8 (patch) | |
tree | 0c2f922fccd9e6f314dce80ccd593f1b627ae08b | |
parent | 7da921a3766c9d2e983dd9756cabb65dd7437cdd (diff) | |
parent | 82a09702644a9f24384552bcc5dab300b41886a4 (diff) | |
download | binutils-de307b61f3aa321d5e5d4e6e692a7dd611191eb8.tar.gz |
bfd: use a temporary variable to convert 'const char*' to 'char *'. am: 53dd00a1a3
am: 82a0970264
Change-Id: If9b02db8cc06962b747e8293ae84eb18b7da054c
-rw-r--r-- | binutils-2.27/bfd/elf32-arm.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/binutils-2.27/bfd/elf32-arm.c b/binutils-2.27/bfd/elf32-arm.c index ff9f41a4..682b6a11 100644 --- a/binutils-2.27/bfd/elf32-arm.c +++ b/binutils-2.27/bfd/elf32-arm.c @@ -5739,12 +5739,13 @@ elf32_arm_size_stubs (bfd *output_bfd, do { bfd_boolean new_stub; + char *name = (char *) sym_name; /* Determine what (if any) linker stub is needed. */ stub_type = arm_type_of_stub (info, section, irela, st_type, &branch_type, hash, destination, sym_sec, - input_bfd, sym_name); + input_bfd, name); if (stub_type == arm_stub_none) break; @@ -5753,7 +5754,7 @@ elf32_arm_size_stubs (bfd *output_bfd, created_stub = elf32_arm_create_stub (htab, stub_type, section, irela, sym_sec, hash, - (char *) sym_name, sym_value, + name, sym_value, branch_type, &new_stub); if (!created_stub) |