aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-01-14 21:55:51 +1030
committerAlan Modra <amodra@gmail.com>2022-01-14 22:02:23 +1030
commitff66e8c5bee8a57b531515342e6126782ea9a651 (patch)
tree7c0905be058c529af36a0638796dadcb73dfab67 /ld/emultempl
parentfd47eb1a302753ddf8e37f5a4918c889cb8c929b (diff)
downloadgdb-ff66e8c5bee8a57b531515342e6126782ea9a651.zip
gdb-ff66e8c5bee8a57b531515342e6126782ea9a651.tar.gz
gdb-ff66e8c5bee8a57b531515342e6126782ea9a651.tar.bz2
PR28751 mbind2a / mbind2b regressions on powerpc*-linux
include/ * bfdlink.h (struct bfd_link_info): Add commonpagesize_is_set. ld/ PR 28751 * emultempl/elf.em (handle_option): Set commonpagesize_is_set. * ldelf.c (ldelf_after_parse): Don't error when only one of -z max-page-size or -z common-page-size is given, correct the other value to make it sane. * testsuite/ld-elf/elf.exp (mbind2a, mbind2b): Do not pass -z max-page-size.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf.em1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em
index 5977526..7325872 100644
--- a/ld/emultempl/elf.em
+++ b/ld/emultempl/elf.em
@@ -731,6 +731,7 @@ fragment <<EOF
|| (link_info.commonpagesize & (link_info.commonpagesize - 1)) != 0)
einfo (_("%F%P: invalid common page size \`%s'\n"),
optarg + 17);
+ link_info.commonpagesize_is_set = true;
}
else if (startswith (optarg, "stack-size="))
{