Menu

- Learn
- Documentation
  - Language Reference
  - Library Reference
  - Command-line Reference
  - Feature Overview
  - Articles
- Downloads
- Packages
- Community
  - Blog
  - Orgs using D
  - Twitter
  - Calendar
  - Forums
  - IRC
  - Community Discord
  - Wiki
  - GitHub
  - Issues
  - Get involved
  - Contributors
  - Foundation
  - Security Team
  - Donate
  - Sponsors
- Resources
  - Tour
  - Books
  - Tutorials
  - Tools
  - Editors
  - IDEs
  - run.dlang.io
  - Visual D
  - Acknowledgments
  - D Style
  - Glossary
  - Sitemap

Search
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using a local clone.

# core.sys.darwin.mach.stab

Bindings for symbols and defines in mach-o/`stab`.h
This file gives definitions supplementing for permanent symbol table entries of Mach-O files. Modified from the BSD definitions. The modifications from the original definitions were changing what the values of what was the n_other field (an unused field) which is now the n_sect field. These modifications are required to support symbols in an arbitrary number of sections not just the three sections (text, data and bss) in a BSD file. The values of the defined constants have NOT been changed.
These must have one of the N_STAB bits on. The n_value fields are subject to relocation according to the value of their n_sect field. So for types that refer to things in sections the n_sect field must be filled in with the proper section ordinal. For types that are not to have their n_value field relocatated the n_sect field must be NO_SECT.
This file was created based on the MacOSX 10.15 SDK.
License:
Boost License 1.0.
Authors:
Mathias 'Geod24' Lang

Source core/sys/darwin/mach/nlist.d

`N_GSYM`
  global symbol: name,,NO_SECT,type,0
`N_FNAME`
  procedure name (f77 kludge): name,,NO_SECT,0,0
`N_FUN`
  procedure: name,,n_sect,linenumber,address
`N_STSYM`
  static symbol: name,,n_sect,type,address
`N_LCSYM`
  .lcomm symbol: name,,n_sect,type,address
`N_BNSYM`
  begin nsect sym: 0,,n_sect,0,address
`N_AST`
  AST file path: name,,NO_SECT,0,0
`N_OPT`
  emitted with gcc2_compiled and in gcc source
`N_RSYM`
  register sym: name,,NO_SECT,type,register
`N_SLINE`
  src line: 0,,n_sect,linenumber,address
`N_ENSYM`
  end nsect sym: 0,,n_sect,0,address
`N_SSYM`
  structure elt: name,,NO_SECT,type,struct_offset
`N_SO`
  source file name: name,,n_sect,0,address
`N_OSO`
  Object file name: name,,(see below),0,st_mtime
  Historically N_OSO set n_sect to 0. The N_OSO n_sect may instead hold the low byte of the cpusubtype value from the Mach-O header.
`N_LSYM`
  local sym: name,,NO_SECT,type,offset
`N_BINCL`
  include file beginning: name,,NO_SECT,0,sum
`N_SOL`
  #included file name: name,,n_sect,0,address
`N_PARAMS`
  compiler parameters: name,,NO_SECT,0,0
`N_VERSION`
  compiler version: name,,NO_SECT,0,0
`N_OLEVEL`
  compiler -O level: name,,NO_SECT,0,0
`N_PSYM`
  parameter: name,,NO_SECT,type,offset
`N_EINCL`
  include file end: name,,NO_SECT,0,0
`N_ENTRY`
  alternate entry: name,,n_sect,linenumber,address
`N_LBRAC`
  left bracket: 0,,NO_SECT,nesting level,address
`N_EXCL`
  deleted include file: name,,NO_SECT,0,sum
`N_RBRAC`
  right bracket: 0,,NO_SECT,nesting level,address
`N_BCOMM`
  begin common: name,,NO_SECT,0,0
`N_ECOMM`
  end common: name,,n_sect,0,0
`N_ECOML`
  end common (local name): 0,,n_sect,0,address
`N_LENG`
  second stab entry with length information
`N_PC`
  global pascal symbol: name,,NO_SECT,subtype,line

Copyright © 1999-2022 by the D Language Foundation | Page generated by Ddoc on Thu Dec 15 17:30:06 2022