Handle MIPS-specific addend rules in computeAddend().
This patch merges computeAddend and computeMipsAddend. Getting an addend for a relocation is usually pretty easy: it is either in the r_addend field (if RELA) or in a target section (if REL). However, MIPS has many special rules that are different from other ELF ABIs. I don't think there were technical reasons to be different, but the reality is that they are different. It is unfortunate that we had to pass many parameters to computeAddend, but it seems unavoidable because of MIPS. llvm-svn: 315617
Loading
Please register or sign in to comment