Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4312)

Unified Diff: bfd/elf-bfd.h

Issue 23903052: fix Base URL: http://git.chromium.org/native_client/nacl-binutils.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « bfd/cache.c ('k') | bfd/elf32-i386.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bfd/elf-bfd.h
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 82c7c774d5f9645cfe1ec39cd13fd52b7a9960a5..927cae14e4a2d5d0a05e0e918028431e41b2d03c 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -2215,19 +2215,11 @@ extern asection _bfd_elf_large_com_section;
/* This macro is to avoid lots of duplicated code in the body
of xxx_relocate_section() in the various elfxx-xxxx.c files. */
-#define RELOC_FOR_GLOBAL_SYMBOL(info, input_bfd, input_section, rel, \
- r_symndx, symtab_hdr, sym_hashes, \
- h, sec, relocation, \
- unresolved_reloc, warned) \
+#define RELOC_FOR_GLOBAL_SYM_HASH(info, input_bfd, input_section, rel, \
+ h, sec, relocation, \
+ unresolved_reloc, warned) \
do \
{ \
- /* It seems this can happen with erroneous or unsupported \
- input (mixing a.out and elf in an archive, for example.) */ \
- if (sym_hashes == NULL) \
- return FALSE; \
- \
- h = sym_hashes[r_symndx - symtab_hdr->sh_info]; \
- \
while (h->root.type == bfd_link_hash_indirect \
|| h->root.type == bfd_link_hash_warning) \
h = (struct elf_link_hash_entry *) h->root.u.i.link; \
@@ -2272,6 +2264,25 @@ extern asection _bfd_elf_large_com_section;
} \
while (0)
+#define RELOC_FOR_GLOBAL_SYMBOL(info, input_bfd, input_section, rel, \
+ r_symndx, symtab_hdr, sym_hashes, \
+ h, sec, relocation, \
+ unresolved_reloc, warned) \
+ do \
+ { \
+ /* It seems this can happen with erroneous or unsupported \
+ input (mixing a.out and elf in an archive, for example.) */ \
+ if (sym_hashes == NULL) \
+ return FALSE; \
+ \
+ h = sym_hashes[r_symndx - symtab_hdr->sh_info]; \
+ \
+ RELOC_FOR_GLOBAL_SYM_HASH(info, input_bfd, input_section, rel, \
+ h, sec, relocation, \
+ unresolved_reloc, warned); \
+ } \
+ while (0)
+
/* Will a symbol be bound to the the definition within the shared
library, if any. */
#define SYMBOLIC_BIND(INFO, H) \
« no previous file with comments | « bfd/cache.c ('k') | bfd/elf32-i386.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698