Skip to content

Commit

Permalink
Merge pull request #2171 from dawgfoto/fix10274
Browse files Browse the repository at this point in the history
better bugfix comment
  • Loading branch information
WalterBright committed Jun 13, 2013
2 parents bd98b63 + 1824d8c commit af70ceb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/backend/elfobj.c
Expand Up @@ -2937,7 +2937,11 @@ int Obj::reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val,
outaddrval:
if (I64)
{
// Elf64 uses only relocations with explicit addends
// Elf64 uses only the explicit addends of Rela
// relocations. It seems like ld.bfd still adds the value at
// the to be relocated address, but ld.gold and the runtime
// linker do not. So make sure we write a 0 to the target
// if we emitted a relocation for it. See Issue 10274.
assert(relinfo == R_X86_64_NONE || val == 0);
}

Expand Down

0 comments on commit af70ceb

Please sign in to comment.