projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2010-09-24 Thomas Schwinge <thomas@codesourcery.com>
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-ppc.c
diff --git
a/bfd/elf32-ppc.c
b/bfd/elf32-ppc.c
index ef0e15927e9af4d3940e196abce5eec88bd39d00..2b457d6d9bfe43e6a89151c7121fa4a1c0c4d254 100644
(file)
--- a/
bfd/elf32-ppc.c
+++ b/
bfd/elf32-ppc.c
@@
-6985,9
+6985,9
@@
ppc_elf_relocate_section (bfd *output_bfd,
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
- r_symndx =
0
;
+ r_symndx =
STN_UNDEF
;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
- if (r_symndx !=
0
)
+ if (r_symndx !=
STN_UNDEF
)
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
@@
-7053,9
+7053,9
@@
ppc_elf_relocate_section (bfd *output_bfd,
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
if (local_sections[r_symndx] == sec)
break;
if (r_symndx >= symtab_hdr->sh_info)
- r_symndx =
0
;
+ r_symndx =
STN_UNDEF
;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
rel->r_addend = htab->elf.tls_sec->vma + DTP_OFFSET;
- if (r_symndx !=
0
)
+ if (r_symndx !=
STN_UNDEF
)
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
rel->r_addend -= (local_syms[r_symndx].st_value
+ sec->output_offset
+ sec->output_section->vma);
@@
-7658,7
+7658,7
@@
ppc_elf_relocate_section (bfd *output_bfd,
sym_name);
ret = FALSE;
}
sym_name);
ret = FALSE;
}
- else if (r_symndx ==
0
|| bfd_is_abs_section (sec))
+ else if (r_symndx ==
STN_UNDEF
|| bfd_is_abs_section (sec))
;
else if (sec == NULL || sec->owner == NULL)
{
;
else if (sec == NULL || sec->owner == NULL)
{
This page took
0.025527 seconds
and
4
git commands to generate.