summaryrefslogtreecommitdiff
path: root/src/cmd/6l/asm.c
AgeCommit message (Collapse)AuthorFilesLines
2008-12-04emit dynamically linked 6.out on darwin instead of static,Russ Cox1-5/+38
unless given -d flag. the resulting binary doesn't *use* any dynamic libraries, it just has a reference to the dynamic linker and an empty list of needed symbols and libraries. this is enough to make 6.out binaries that can be run under dtrace / dtruss. R=r DELTA=39 (34 added, 0 deleted, 5 changed) OCL=20476 CL=20482
2008-11-21fix 6l bug - moved symbol table withoutRuss Cox1-4/+2
recording correct place in mach tables used by debuggers. R=r DELTA=4 (0 added, 2 deleted, 2 changed) OCL=19810 CL=19849
2008-11-20symbol table changesRuss Cox1-9/+40
* add gotype string to symbol table * fill in gotype in 6l for known funcs/vars * print gotype with nm -t * load symbol and pc/ln tables into memory at magic address 0x99<<32. * add sys.symdat() to retrieve raw bytes of symbol table and pc/ln table. most of this should be considered experimental and subject to change. R=r DELTA=157 (128 added, 0 deleted, 29 changed) OCL=19746 CL=19750
2008-10-216l: invent gotypestrings if neededRuss Cox1-5/+13
R=r DELTA=419 (409 added, 5 deleted, 5 changed) OCL=17524 CL=17530
2008-10-20use Biobuf not fd for reading objects.Russ Cox1-1/+0
will make reading type info easier. R=r DELTA=21 (2 added, 1 deleted, 18 changed) OCL=17491 CL=17501
2008-09-26fix ELF bugs found by iantRuss Cox1-9/+9
- .text begins at INITTEXT, not 0 and does not include HEADR - .shstrtab, .gosymtab, .gopclntab have alignment 1 - .gosymtab, .gopclntab have type SHT_PROGBITS R=r DELTA=9 (0 added, 0 deleted, 9 changed) OCL=15953 CL=15956
2008-09-08go linux x86-64 kernel fixes:Russ Cox1-3/+3
* change .gosymtab and .gopclntab to section 7 (note) * start INITTEXT at 4MB, not 4KB R=r OCL=14953 CL=14959
2008-08-03make 6a, 6c, 6g, 6l, libmach_amd64 build on 64-bit gcc.Russ Cox1-16/+16
these guys really really want long to be 32-bits, so ,s/long/int32/ (and then manual fixup). still passes all tests. (i started out looking for just those longs that needed to be int32 instead, and it was just too hard to track them down one by one.) the longs were rare enough that i don't think it will cause integration problems. R=ken OCL=13787 CL=13789
2008-06-18stack offsetKen Thompson1-2/+1
SVN=123521
2008-06-18stack offseet table markerKen Thompson1-1/+2
tacked above each TEXT entry SVN=123496
2008-06-15add support for debugging in MACH binariesRob Pike1-3/+28
fix up libmach_amd64 to handle MACH binaries and symbols db now works on mac and linux SVN=122807
2008-06-13add symbol tables and line/pc information to 6.outsRob Pike1-54/+89
SVN=122699
2008-06-12Bug fix. Without rounding, .shstrtab is written on top of data segmentRob Pike1-2/+1
SVN=122567
2008-06-10mode elf tossingKen Thompson1-52/+74
SVN=121962
2008-06-09new elf headerKen Thompson1-39/+195
SVN=121737
2008-06-05goos goarchKen Thompson1-1/+64
SVN=121348
2008-06-04Add compiler source to new directory structureRob Pike1-0/+617
SVN=121164