gcc/libgcc/config
Kewen Lin 15b83b69ca libgcc, rs6000: Fix bump size for powerpc64 elfv1 ABI [PR108727]
As PR108727 shows, when cleanup code called by the stack
unwinder calls function _Unwind_Resume, it goes via plt
stub like:

   function 00000000.plt_call._Unwind_Resume:

=> 0x0000000010003580 <+0>:     std     r2,40(r1)
   0x0000000010003584 <+4>:     ld      r12,-31760(r2)
   0x0000000010003588 <+8>:     mtctr   r12
   0x000000001000358c <+12>:    ld      r2,-31752(r2)
   0x0000000010003590 <+16>:    cmpldi  r2,0
   0x0000000010003594 <+20>:    bnectr+
   0x0000000010003598 <+24>:    b       0x100031a4
                                        <_Unwind_Resume@plt>

It wants to save TOC base (r2) to r1 + 40, but we only
bump the stack segment by 32 bytes as follows:

   stdu %r29,-32(%r3)

It means the access is out of the stack segment allocated
by __generic_morestack, once the touch area isn't writable
like this failure shows, it would cause segment fault.

So fix the bump size with one reasonable value PARAMS.

	PR libgcc/108727

libgcc/ChangeLog:

	* config/rs6000/morestack.S (__morestack): Use PARAMS for new stack
	bump size.
2023-03-08 00:57:21 -06:00
..
aarch64 libgcc: Fix uninitialized RA signing on AArch64 [PR107678] 2023-01-18 12:20:35 +00:00
alpha Update copyright years. 2023-01-16 11:52:17 +01:00
arc Update copyright years. 2023-01-16 11:52:17 +01:00
arm arm: Fix warning in libgcc/config/arm/pr-support.c 2023-02-03 16:40:42 +01:00
avr Update copyright years. 2023-01-16 11:52:17 +01:00
bfin Update copyright years. 2023-01-16 11:52:17 +01:00
bpf
c6x Update copyright years. 2023-01-16 11:52:17 +01:00
cris Update copyright years. 2023-01-16 11:52:17 +01:00
csky Update copyright years. 2023-01-16 11:52:17 +01:00
epiphany Update copyright years. 2023-01-16 11:52:17 +01:00
fr30 Update copyright years. 2023-01-16 11:52:17 +01:00
frv Update copyright years. 2023-01-16 11:52:17 +01:00
ft32 Update copyright years. 2023-01-16 11:52:17 +01:00
gcn Update copyright years. 2023-01-16 11:52:17 +01:00
h8300 Update copyright years. 2023-01-16 11:52:17 +01:00
i386 Add support for x86_64-*-gnu-* targets to build x86_64 gnumach/hurd 2023-01-30 16:34:48 +01:00
ia64 Update copyright years. 2023-01-16 11:52:17 +01:00
iq2000 Update copyright years. 2023-01-16 11:52:17 +01:00
libbid Update copyright years. 2023-01-16 11:52:17 +01:00
lm32 Update copyright years. 2023-01-16 11:52:17 +01:00
loongarch Update copyright years. 2023-01-16 11:52:17 +01:00
m32c Update copyright years. 2023-01-16 11:52:17 +01:00
m32r Update copyright years. 2023-01-16 11:52:17 +01:00
m68k Update copyright years. 2023-01-16 11:52:17 +01:00
mcore Update copyright years. 2023-01-16 11:52:17 +01:00
microblaze Update copyright years. 2023-01-16 11:52:17 +01:00
mips Update copyright years. 2023-01-16 11:52:17 +01:00
mmix Update copyright years. 2023-01-16 11:52:17 +01:00
moxie Update copyright years. 2023-01-16 11:52:17 +01:00
msp430 Update copyright years. 2023-01-16 11:52:17 +01:00
nds32 Update copyright years. 2023-01-16 11:52:17 +01:00
nios2 Update copyright years. 2023-01-16 11:52:17 +01:00
nvptx Update copyright years. 2023-01-16 11:52:17 +01:00
or1k Update copyright years. 2023-01-16 11:52:17 +01:00
pa Update copyright years. 2023-01-16 11:52:17 +01:00
pdp11
pru Update copyright years. 2023-01-16 11:52:17 +01:00
riscv RISC-V: Handle vlenb correctly in unwinding 2023-02-13 10:40:46 +08:00
rl78 Update copyright years. 2023-01-16 11:52:17 +01:00
rs6000 libgcc, rs6000: Fix bump size for powerpc64 elfv1 ABI [PR108727] 2023-03-08 00:57:21 -06:00
rx Update copyright years. 2023-01-16 11:52:17 +01:00
s390 Update copyright years. 2023-01-16 11:52:17 +01:00
score Update copyright years. 2023-01-16 11:52:17 +01:00
sh Update copyright years. 2023-01-16 11:52:17 +01:00
sol2 Update copyright years. 2023-01-16 11:52:17 +01:00
sparc Update copyright years. 2023-01-16 11:52:17 +01:00
stormy16 Update copyright years. 2023-01-16 11:52:17 +01:00
v850 Update copyright years. 2023-01-16 11:52:17 +01:00
vax Update copyright years. 2023-01-16 11:52:17 +01:00
visium Update copyright years. 2023-01-16 11:52:17 +01:00
vms Update copyright years. 2023-01-16 11:52:17 +01:00
xtensa Update copyright years. 2023-01-16 11:52:17 +01:00
darwin-64.c Update copyright years. 2023-01-16 11:52:17 +01:00
darwin-crt-tm.c Update copyright years. 2023-01-16 11:52:17 +01:00
darwin-crt3.c Update copyright years. 2023-01-16 11:52:17 +01:00
darwin-unwind.ver libgcc, Darwin: Build a libgcc_s.1 for backwards compatibility. 2021-12-08 19:53:28 +00:00
darwin10-unwind-find-enc-func.c Darwin, crts: Fix a build warning. 2021-11-05 20:48:05 +00:00
gthr-lynx.h Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-rtems.h Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-vxworks-cond.c Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-vxworks-thread.c Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-vxworks-tls.c Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-vxworks.c Update copyright years. 2023-01-16 11:52:17 +01:00
gthr-vxworks.h Update copyright years. 2023-01-16 11:52:17 +01:00
hardfp.c Update copyright years. 2023-01-16 11:52:17 +01:00
libgcc-glibc.ver Update copyright years. 2023-01-16 11:52:17 +01:00
libgcc-libsystem.ver Darwin: Rework handling for unwinder code in libgcc_s and specs [PR80556]. 2021-11-19 19:58:11 +00:00
no-sfp-machine.h
no-unwind.h
t-crtfm
t-crtstuff-pic
t-darwin libgcc, Darwin: Update darwin10 unwinder shim dependencies. 2021-12-10 23:15:15 +00:00
t-darwin-ehs Darwin, libgcc: Fix build errors on powerpc-darwin8. 2022-03-04 16:44:54 +00:00
t-dfprules
t-eh-dw2-dip
t-fdpbit
t-fixedpoint-gnu-prefix
t-fpbit
t-freebsd-thread
t-gnu-prefix
t-gthr-noweak
t-gthr-vxworks
t-gthr-vxworksae
t-hardfp Update copyright years. 2023-01-16 11:52:17 +01:00
t-hardfp-sfdf Update copyright years. 2023-01-16 11:52:17 +01:00
t-libgcc-pic
t-libunwind
t-libunwind-elf Update copyright years. 2023-01-16 11:52:17 +01:00
t-linux
t-openbsd-thread
t-rtems
t-slibgcc Update copyright years. 2023-01-16 11:52:17 +01:00
t-slibgcc-darwin libgcc, Darwin: No early install for the compatibility libgcc_s.1.dylib. 2022-12-24 13:52:46 +00:00
t-slibgcc-elf-ver
t-slibgcc-fuchsia Update copyright years. 2023-01-16 11:52:17 +01:00
t-slibgcc-gld
t-slibgcc-gld-nover
t-slibgcc-hpux
t-slibgcc-libgcc Update copyright years. 2023-01-16 11:52:17 +01:00
t-slibgcc-nolc-override
t-slibgcc-sld
t-slibgcc-vms libgcc: Honor LDFLAGS_FOR_TARGET when linking libgcc_s 2021-08-05 17:32:06 +02:00
t-softfp Update copyright years. 2023-01-16 11:52:17 +01:00
t-softfp-compat
t-softfp-excl
t-softfp-sfdf
t-softfp-sfdftf
t-softfp-tf
t-stack
t-tls
t-vxcrtstuff
t-vxcrtstuffS Tigthen libc_internal and crtstuff for VxWorks shared objects 2021-12-13 18:03:03 +00:00
t-vxworks Adjust LIBGCC2_INCLUDES for VxWorks and augment comment 2022-10-02 09:33:00 +00:00
t-vxworksae
unwind-dw2-fde-darwin.c Update copyright years. 2023-01-16 11:52:17 +01:00
vxcrtstuff.c Improve comments and INITFINI macro use in vxcrtsutff.c 2022-09-29 18:02:21 +00:00