Fix .localentry example in section 3.4.1
#67
Closed
opened 8 years ago by wschmidt-ibm
·
0 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
In section 3.4.1 of the ABI, we have the following:
The local-entry-point handling field of st_other is generated with the .localentry pseudo op. The
following is an example using the medium code model:
The two references to my_sym appear bogus. Earlier in the document (section 2.3.2.1 Function Prologue) we have instead:
When a function has two entry points, the global entry point is defined as a symbol. The local entry
point is defined with the .localentry assembler pseudo op.
which seems correct. Assembly dumps from GCC-compiled code omit the parentheses around .TOC.-my_func, but it only makes sense for the subtraction to bind more tightly than the @ha and @l modifiers, so this should be the same:
All of which is to say, I think we need to correct the section 3.4.1 example to look like the section 2.3.2.1 example.