I'm confused about the use of wrt ..plt in Listing 15-10.
Why state that sofun should use a PLT entry in the assembly code? Isn't it the static linkers job to determine what symbols should be bound dynamically (and therefore use GOT/PLT)?
If wrt ..plt is omitted, the same code is generated (in particular GOT/PLT is still used for sofun).
I'm confused about the use of
wrt ..pltin Listing 15-10.Why state that
sofunshould use a PLT entry in the assembly code? Isn't it the static linkers job to determine what symbols should be bound dynamically (and therefore use GOT/PLT)?If
wrt ..pltis omitted, the same code is generated (in particular GOT/PLT is still used forsofun).