https://sourceware.org/bugzilla/show_bug.cgi?id=31216
--- Comment #6 from Marcin Godlewski <marcin.godlewski at onet dot pl> --- Just wanted to correct myself, not to mislead anyone reading. With lld, by default, although executable sections are mapped to a separate segment, the executable segment mapping may still contain content of adjacent sections in runtime as they share the page-sized chunk of the executable file. In order to avoid this, -zseparate-code is required, similarly as for GNU ld. Program Headers: Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align PHDR 0x000040 0x0000000000000040 0x0000000000000040 0x000268 0x000268 R 0x8 INTERP 0x0002a8 0x00000000000002a8 0x00000000000002a8 0x00001b 0x00001b R 0x1 [Requesting program interpreter: /lib/ld-linux-aarch64.so.1] LOAD 0x000000 0x0000000000000000 0x0000000000000000 0x000704 0x000704 R 0x10000 LOAD 0x010000 0x0000000000010000 0x0000000000010000 0x0001d0 0x0001d0 R E 0x10000 LOAD 0x020000 0x0000000000020000 0x0000000000020000 0x000228 0x000228 RW 0x10000 LOAD 0x020228 0x0000000000030228 0x0000000000030228 0x000010 0x000011 RW 0x10000 DYNAMIC 0x020010 0x0000000000020010 0x0000000000020010 0x0001b0 0x0001b0 RW 0x8 GNU_RELRO 0x020000 0x0000000000020000 0x0000000000020000 0x000228 0x001000 R 0x1 GNU_EH_FRAME 0x0005f8 0x00000000000005f8 0x00000000000005f8 0x00003c 0x00003c R 0x4 GNU_STACK 0x000000 0x0000000000000000 0x0000000000000000 0x000000 0x000000 RW 0 NOTE 0x0002c4 0x00000000000002c4 0x00000000000002c4 0x000038 0x000038 R 0x4 Section to Segment mapping: Segment Sections... 00 01 .interp 02 .interp .note.ABI-tag .note.gnu.build-id .dynsym .gnu.version .gnu.version_r .gnu.hash .dynstr .rela.dyn .rela.plt .rodata .eh_frame_hdr .eh_frame 03 .text .init .fini .plt 04 .fini_array .init_array .dynamic .got .got.plt 05 .data .bss 06 .dynamic 07 .fini_array .init_array .dynamic .got .got.plt 08 .eh_frame_hdr 09 10 .note.ABI-tag .note.gnu.build-id -- You are receiving this mail because: You are on the CC list for the bug.