Relocation
Prev: Libraries Next: Loading and overlays
Problems
7.1
Why does a SPARC linker check for address overflow when relocating branch addresses, but not when doing the high and low parts of the addresses in a SETHI sequence?
7.2
In the MIPS example, a REFHI relocation item needs a following PAIR item, but a REFLO doesn’t. Why not?
7.3
References to symbols that are pseudo-registers and thread local storage are resolved as offsets from the start of the segment, while normal symbol references are resolved as absolute addresses. Why?
7.4
We said that a.out and COFF relocation doesn’t handle references like A-B where A and B are both global symbols. Can you come up with a way to fake it?