File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -113,9 +113,17 @@ The following symbolic reference kinds are currently implemented:
113113 objective-c-protocol-relative-reference ::= '\x0C' .{4} // Reference points directly to a objective-c protcol reference
114114 #endif
115115
116- A mangled name may also include ``\xFF `` bytes, which are only used for
117- alignment padding. They do not affect what the mangled name references and can
118- be skipped over and ignored.
116+ Mangled names that contain relative symbolic references may include ``\xFF ``
117+ bytes for alignment padding purposes. These bytes do not affect what the mangled
118+ name references and can be skipped over and ignored.
119+
120+ DISCUSSION: A relative symbolic reference encodes a symbol by adding the offset
121+ integer value contained within the relative symbolic reference to the address in
122+ memory of the first byte of the relative symbolic reference. The addition of
123+ padding bytes is used to manipulate the location of that first byte so that the
124+ address of is already aligned in the same manner as the symbol that is
125+ ultimately referenced. Thus only an offset must be added to that address instead
126+ of also needing to consider alignment differences.
119127
120128Globals
121129~~~~~~~
You can’t perform that action at this time.
0 commit comments