mips: dl-machine-reject-phdr: Get rid of alloca.
authorJoe Simmons-Talbott <josimmon@redhat.com>
Mon, 2 Oct 2023 12:55:27 +0000 (12:55 +0000)
committerJoe Simmons-Talbott <josimmon@redhat.com>
Mon, 2 Oct 2023 12:55:27 +0000 (12:55 +0000)
commit08e9a60a1ad34425a849c37611e55dd9fb4d3618
tree677e8aa5a4126a8f347992f89d0b96783e28a181
parentd90b43a4ed475dac5b0cd6e01ceb35c7b0f7f2ff
mips: dl-machine-reject-phdr: Get rid of alloca.

Read directly into the mips_abiflags struct rather than reading the
entire segment and using alloca when the passed buffer is not big enough.

Checked with build-many-glibcs.py on mips-linux-gnu

Tested-by: Ying Huang <ying.huang@oss.cipunited.com>
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
sysdeps/mips/dl-machine-reject-phdr.h