Skip to content

Commit

Permalink
forgor this
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 13, 2024
1 parent 87179dd commit 6b5257c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/file_format/gp_info.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Gp info

Hold the information to emit a `_gp` (global pointer) symbol for the given
segment.

The `_gp` symbol is used on MIPS builds that want to use the "small data"
sections. This allows to refences small objects using a single MIPS instruction
instead of two.

The `_gp` symbol is usually defined as an offset into the start of the first
small section. It is defined this way to maximize the addressable range of this
technique. Both the section and the offset are configurable.

Every attribute listed is optional unless explicitly stated.

Expand Down

0 comments on commit 6b5257c

Please sign in to comment.