golang: fixed build errors and some refactoring

git-svn-id: svn://kolibrios.org@9298 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Rustem Gimadutdinov (rgimad)
2021-11-21 21:10:17 +00:00
parent 7a80e13e25
commit 227e2de7d9
7 changed files with 516 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
SECTIONS
{
. = 0x00000;
.text :
{
LONG(0x554e454D);
LONG(0x31305445);
LONG(1);
LONG(go.example.Main);
LONG(__end);
LONG(0x10000);
LONG(0x10000);
LONG(0);
LONG(0);
*(.text)
}
.eh_frame : {
*(.eh_frame)
}
.group : {
*(.group)
}
.data : {
*(.data)
}
.rodata : {
*(.rodata)
*(.rodata.*)
}
__end = .;
}