This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PING] [PATCH][AARCH64]End frame record chain correctly

Hi all,

can anybody help to review this?

Renlin Li

On 31/10/14 14:30, Renlin Li wrote:
Hi all,

This is a simple patch to make the end of frame record chain correctly according to AArch64 AAPCS. Currently, the FP(x29) is overwritten by SP in the very beginning of _start.

aarch64-none-linux-gnueabi target has been tested on the model. No new issues.

Is this Okay to commit?

From the Procedure Call Standard for ARM 64-bit Architecture documentation: "Conforming code shall construct a linked list of stack-frames. Each frame shall link to the frame of its caller by means of a frame record of two 64-bit values on the stack. The frame record for the innermost frame (belonging to the most recent routine invocation) shall be pointed to by the Frame Pointer register (FP). The lowest addressed double-word shall point to the previous frame record and the highest addressed double-word shall contain the value passed in LR on entry to the current function. The end of the frame record chain is indicated by the address zero in the address for the previous frame."


2014-10-31  Renlin Li  <>

    * sysdeps/aarch64/start.S: Delete x29 overwritten assignment.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]