Relocation against a symbol, instead of against section. We had some extreme
authorAkira Hatanaka <ahatanaka@mips.com>
Tue, 13 Dec 2011 02:27:40 +0000 (02:27 +0000)
committerAkira Hatanaka <ahatanaka@mips.com>
Tue, 13 Dec 2011 02:27:40 +0000 (02:27 +0000)
commitf3315cf65f9574cd1e4e784d2860c943cfa65ce9
treed58fa6b8942c4eb05ac0a7d9ec6747e7d0a04a34
parent6f20c61e07b570ad95fec81437972d653b362e63
Relocation against a symbol, instead of against section. We had some extreme
test cases where there were a lot of relocations applied relative to a large
rodata section. Gas would create a symbol for each of these whereas we would
be relative to the beginning of the rodata section. This change mimics what
gas does.

Patch by Jack Carter.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146468 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/ELFObjectWriter.cpp
test/CodeGen/Mips/DO-relsym.ll [new file with mode: 0644]