Descriptioncmd/5l,runtime: External linking support on linux-arm
This CL adds support for -linkmode external to 5l.
For 5l itself, use addrel to allow for D_CALL relocations to be handled by the host linker. Of the cases listed in rsc's comment in issue 4069, only case 5 and 63 needed an update. One of the TODO: addrel cases was since replaced, and the rest of the cases are either covered by indirection through addpool (cases with LTO or LFROM flags) or stubs (case 74). The addpool cases are covered because addpool emits AWORD instructions, which in turn are handled by case 11.
In the runtime, change the argv argument in the rt0* functions slightly to be a pointer to the argv list, instead of relying on a particular location of argv.
Depends on CL 10499043
Fixes issue 5590.
Patch Set 1 #Patch Set 2 : diff -r 52d53d0e177e https://go.googlecode.com/hg/ #Patch Set 3 : diff -r 52d53d0e177e https://go.googlecode.com/hg/ #Patch Set 4 : diff -r af0c031528c3076cb822774cf07376e1c0498009 https://go.googlecode.com/hg/ #Patch Set 5 : diff -r 0e1259745eef65666c29c07c24b38bbc4516984d https://go.googlecode.com/hg/ #Patch Set 6 : diff -r d3f99f091748edbde50f28c0064cab1eea0520c9 https://go.googlecode.com/hg/ #Patch Set 7 : diff -r e7d93594bac0f5a663728bb5e185e163772bc4ab https://go.googlecode.com/hg/ #Patch Set 8 : diff -r cc6d9589262e8f88e8e1a8a424f143dde76d68e0 https://go.googlecode.com/hg/ #
Total comments: 1
MessagesTotal messages: 8
|