Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
golang
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
golang
Commits
4228e622
Commit
4228e622
authored
Oct 24, 2010
by
Luuk van Dijk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6l/8l: global and local variables and type info.
R=rsc CC=golang-dev
https://golang.org/cl/2201044
parent
c28fa513
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
11 deletions
+23
-11
dwarf.c
src/cmd/ld/dwarf.c
+0
-0
dwarf.h
src/cmd/ld/dwarf.h
+7
-7
dwarf_defs.h
src/cmd/ld/dwarf_defs.h
+14
-2
elf.h
src/cmd/ld/elf.h
+1
-2
type.go
src/pkg/runtime/type.go
+1
-0
No files found.
src/cmd/ld/dwarf.c
View file @
4228e622
This diff is collapsed.
Click to expand it.
src/cmd/ld/dwarf.h
View file @
4228e622
...
...
@@ -2,25 +2,25 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/*
* Register 'f' symbol file fragments. Doing this while parsing the
* .6 input saves a pass over the symbol table later.
*/
void
dwarfaddfrag
(
int
n
,
char
*
frag
);
/*
* Add the dwarf section names to the ELF
* s[ection]h[eader]str[ing]tab.
*/
void
dwarfaddshstrings
(
Sym
*
shstrtab
);
/*
* Emit debug_abbrevs, debug_info and debug_line sections to current
* offset in cout.
*/
void
dwarfemitdebugsections
(
void
);
/*
* Add the dwarf section names to the ELF
* s[ection]h[eader]str[ing]tab. Prerequisite for
* dwarfaddelfheaders().
*/
void
dwarfaddshstrings
(
Sym
*
shstrtab
);
/*
* Add section headers pointing to the sections emitted in
* dwarfemitdebugsections.
...
...
src/cmd/ld/dwarf_defs.h
View file @
4228e622
...
...
@@ -55,6 +55,7 @@ enum
DW_TAG_variant_part
=
0x33
,
DW_TAG_variable
=
0x34
,
DW_TAG_volatile_type
=
0x35
,
// Dwarf3
DW_TAG_dwarf_procedure
=
0x36
,
DW_TAG_restrict_type
=
0x37
,
DW_TAG_interface_type
=
0x38
,
...
...
@@ -65,6 +66,12 @@ enum
DW_TAG_imported_unit
=
0x3d
,
DW_TAG_condition
=
0x3f
,
DW_TAG_shared_type
=
0x40
,
// Dwarf4
DW_TAG_type_unit
=
0x41
,
DW_TAG_rvalue_reference_type
=
0x42
,
DW_TAG_template_alias
=
0x43
,
// User defined
DW_TAG_lo_user
=
0x4080
,
DW_TAG_hi_user
=
0xffff
,
...
...
@@ -84,7 +91,7 @@ enum
DW_CLS_BLOCK
,
DW_CLS_CONSTANT
,
DW_CLS_FLAG
,
DW_CLS_PTR
,
// lineptr, loclistptr, macptr, rangelistptr
DW_CLS_PTR
,
// lineptr, loclistptr, macptr, rangelistptr
DW_CLS_REFERENCE
,
DW_CLS_STRING
};
...
...
@@ -151,6 +158,7 @@ enum
DW_AT_variable_parameter
=
0x4b
,
// flag
DW_AT_virtuality
=
0x4c
,
// constant
DW_AT_vtable_elem_location
=
0x4d
,
// block, loclistptr
// Dwarf3
DW_AT_allocated
=
0x4e
,
// block, constant, reference
DW_AT_associated
=
0x4f
,
// block, constant, reference
DW_AT_data_location
=
0x50
,
// block
...
...
@@ -178,6 +186,7 @@ enum
DW_AT_elemental
=
0x66
,
// flag
DW_AT_pure
=
0x67
,
// flag
DW_AT_recursive
=
0x68
,
// flag
DW_AT_lo_user
=
0x2000
,
// ---
DW_AT_hi_user
=
0x3fff
,
// ---
...
...
@@ -358,6 +367,7 @@ enum
DW_LANG_Fortran90
=
0x0008
,
DW_LANG_Pascal83
=
0x0009
,
DW_LANG_Modula2
=
0x000a
,
// Dwarf3
DW_LANG_Java
=
0x000b
,
DW_LANG_C99
=
0x000c
,
DW_LANG_Ada95
=
0x000d
,
...
...
@@ -367,7 +377,8 @@ enum
DW_LANG_ObjC_plus_plus
=
0x0011
,
DW_LANG_UPC
=
0x0012
,
DW_LANG_D
=
0x0013
,
DW_LANG_Python
=
0x0014
,
// DWARF4
// Dwarf4
DW_LANG_Python
=
0x0014
,
DW_LANG_lo_user
=
0x8000
,
DW_LANG_Go
=
0x8015
,
// TODO(lvd) Temporary
...
...
@@ -428,6 +439,7 @@ enum
DW_LNS_set_basic_block
=
0x07
,
DW_LNS_const_add_pc
=
0x08
,
DW_LNS_fixed_advance_pc
=
0x09
,
// Dwarf3
DW_LNS_set_prologue_end
=
0x0a
,
DW_LNS_set_epilogue_begin
=
0x0b
,
DW_LNS_set_isa
=
0x0c
,
...
...
src/cmd/ld/elf.h
View file @
4228e622
...
...
@@ -975,5 +975,4 @@ void elfsetstring(char*, int);
* May waste some.
* On FreeBSD, cannot be larger than a page.
*/
#define ELFRESERVE 2048
#define ELFRESERVE 3072
src/pkg/runtime/type.go
View file @
4228e622
...
...
@@ -9,6 +9,7 @@
* data structures and must be kept in sync with this file:
*
* ../../cmd/gc/reflect.c
* ../../cmd/ld/dwarf.c
* ../reflect/type.go
* type.h
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment