The attached patch updates libObject's code for producing a string representing a relocation. This lets us emit "Unknown" far less often. The test is a .o assembled from this .s:<div><div><br></div><div><div>

.text</div><div>  func:</div><div>    movb $somedata-4, %al</div><div>    movw $somedata-4, %ax</div><div>    movl $somedata-4, %eax</div><div>    movq $somedata-4, %rax</div><div>    movabsl somedata-4, %eax</div><div>    movl %eax, somedata(%rip)</div>

<div><br></div><div>    movl $somedata, %ebx</div><div><br></div><div>    movl $somedata+4, %ecx</div><div><br></div><div>.data</div><div>  somedata:</div><div>    .long 0x0</div></div><div><br></div></div><div>Please review!</div>

<div><br></div><div>Nick</div><div><br></div>