[PowerPC] Fix stack padding issue on ppc32.
Four bytes of padding are needed in the regular powerpc case to bring the stack frame size up to a multiple of 16 bytes to meet ABI requirements. Fixes odd hangs I was encountering during testing.
This commit is contained in:
parent
e56d731b7d
commit
e58d379587
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355047
@ -111,7 +111,7 @@ _ENTRY(.rtld_start)
|
||||
/* stack space for 30 GPRs + lr/cr */
|
||||
#define NREGS 30
|
||||
#define GPRWIDTH 4
|
||||
#define FUDGE 0
|
||||
#define FUDGE 4
|
||||
#endif
|
||||
/* Stack frame needs the 12-byte ABI frame plus fudge factor. */
|
||||
#define STACK_SIZE (NREGS * GPRWIDTH + 4 * 2 + 12 + FUDGE)
|
||||
|
Loading…
Reference in New Issue
Block a user