View source code
Display the source code in dmd/backend/machobj.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aGitHub 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 usinglocal clone.
Function dmd.backend.machobj.MachObj_reftoident
Refer to an identifier.
Input
seg = where the address is going (CODE or DATA) offset = offset within seg s . Symbol table entry for identifier val = displacement from identifier flags = CF.selfrel: self-relative
CF.seg
get segment
CF.off
get offset
CF.pc32
[RIP] addressing, val is 0, -1, -2 or -4
CF.offset64
8 byte offset for 64 bit builds
CF.selfrel26
26 bit offset for BL function calls
Returns
number of bytes in reference (4 or 8)
Authors
License
Copyright © 1999-2026 by the D Language Foundation | Page generated by ddox.