f32da6f20f
* new .base64 pseudo-op, allowing base64 encoded data as strings * Intel APX: add support for CFCMOV, CCMP, CTEST, zero-upper, NF (APX_F now fully supported) * x86 Intel syntax now warns about more mnemonic suffixes * macros and .irp/.irpc/.rept bodies can use \+ to get at number of times the macro/body was executed * aarch64: support 'armv9.5-a' for -march, add support for LUT and LUT2 * s390: base register operand in D(X,B) and D(L,B) can now be omitted (ala 'D(X,)'); warn when register type doesn't match operand type (use option 'warn-regtype-mismatch=[strict|relaxed|no]' to adjust) * riscv: support various extensions: Zacas, Zcmp, Zfbfmin, Zvfbfmin, Zvfbfwma, Smcsrind/Sscsrind, XCvMem, XCvBi, XCvElw, XSfCease, all at version 1.0; remove support for assembly of privileged spec 1.9.1 (linking support remains) * arm: remove support for some old co-processors: Maverick and FPA * mips: '--trap' now causes either trap or breakpoint instructions to be emitted as per current ISA, instead of always using trap insn and failing when current ISA was incompatible with that * LoongArch: accept .option pseudo-op for fine-grained control of assembly code options; add support for DT_RELR * readelf: now displays RELR relocations in full detail; add -j/--display-section to show just those section(s) content according to their type * objdump/readelf now dump also .eh_frame_hdr (when present) when dumping .eh_frame * gprofng: add event types for AMD Zen3/Zen4 and Intel Ice Lake processors; add minimal support for riscv * linker: OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=471
57 lines
2.8 KiB
Diff
57 lines
2.8 KiB
Diff
Change default common-page-size to 64K on aarch64. This enables the use
|
|
of RELRO since we are using 64K pages.
|
|
|
|
Index: binutils-2.41/bfd/elfnn-aarch64.c
|
|
===================================================================
|
|
--- binutils-2.41.orig/bfd/elfnn-aarch64.c 2023-07-03 01:00:00.000000000 +0200
|
|
+++ binutils-2.41/bfd/elfnn-aarch64.c 2023-08-16 16:31:51.238779641 +0200
|
|
@@ -10251,7 +10251,7 @@ const struct elf_size_info elfNN_aarch64
|
|
#define ELF_ARCH bfd_arch_aarch64
|
|
#define ELF_MACHINE_CODE EM_AARCH64
|
|
#define ELF_MAXPAGESIZE 0x10000
|
|
-#define ELF_COMMONPAGESIZE 0x1000
|
|
+#define ELF_COMMONPAGESIZE 0x10000
|
|
|
|
#define bfd_elfNN_bfd_free_cached_info \
|
|
elfNN_aarch64_bfd_free_cached_info
|
|
Index: binutils-2.41/gold/aarch64.cc
|
|
===================================================================
|
|
--- binutils-2.41.orig/gold/aarch64.cc 2023-07-03 01:00:00.000000000 +0200
|
|
+++ binutils-2.41/gold/aarch64.cc 2023-08-16 16:28:35.959450565 +0200
|
|
@@ -3555,7 +3555,7 @@ const Target::Target_info Target_aarch64
|
|
"/lib/ld.so.1", // program interpreter
|
|
0x400000, // default_text_segment_address
|
|
0x10000, // abi_pagesize (overridable by -z max-page-size)
|
|
- 0x1000, // common_pagesize (overridable by -z common-page-size)
|
|
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
|
|
false, // isolate_execinstr
|
|
0, // rosegment_gap
|
|
elfcpp::SHN_UNDEF, // small_common_shndx
|
|
@@ -3584,7 +3584,7 @@ const Target::Target_info Target_aarch64
|
|
"/lib/ld.so.1", // program interpreter
|
|
0x400000, // default_text_segment_address
|
|
0x10000, // abi_pagesize (overridable by -z max-page-size)
|
|
- 0x1000, // common_pagesize (overridable by -z common-page-size)
|
|
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
|
|
false, // isolate_execinstr
|
|
0, // rosegment_gap
|
|
elfcpp::SHN_UNDEF, // small_common_shndx
|
|
@@ -3613,7 +3613,7 @@ const Target::Target_info Target_aarch64
|
|
"/lib/ld.so.1", // program interpreter
|
|
0x400000, // default_text_segment_address
|
|
0x10000, // abi_pagesize (overridable by -z max-page-size)
|
|
- 0x1000, // common_pagesize (overridable by -z common-page-size)
|
|
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
|
|
false, // isolate_execinstr
|
|
0, // rosegment_gap
|
|
elfcpp::SHN_UNDEF, // small_common_shndx
|
|
@@ -3642,7 +3642,7 @@ const Target::Target_info Target_aarch64
|
|
"/lib/ld.so.1", // program interpreter
|
|
0x400000, // default_text_segment_address
|
|
0x10000, // abi_pagesize (overridable by -z max-page-size)
|
|
- 0x1000, // common_pagesize (overridable by -z common-page-size)
|
|
+ 0x10000, // common_pagesize (overridable by -z common-page-size)
|
|
false, // isolate_execinstr
|
|
0, // rosegment_gap
|
|
elfcpp::SHN_UNDEF, // small_common_shndx
|