https://sourceware.org/bugzilla/show_bug.cgi?id=32461
--- Comment #3 from Stas Sergeev <stsp at users dot sourceforge.net> --- OK, thanks. But what to do? Use different opts on ld and lld? lld says using -Ttext-segment is invalid, and I also suspected the same, because when I read segments with `readelf -l`, I see that Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align LOAD 0x000000 0x08148000 0x08148000 0x0011c 0x0011c R 0x1000 LOAD 0x001000 0x08149000 0x08149000 0x000c5 0x000c5 R E 0x1000 LOAD 0x000000 0x0814a000 0x0814a000 0x00000 0x00018 RW 0x1000 NOTE 0x0000f4 0x081480f4 0x081480f4 0x00028 0x00028 R 0x4 GNU_PROPERTY 0x0000f4 0x081480f4 0x081480f4 0x00028 0x00028 R 0x4 GNU_STACK 0x000000 0x00000000 0x00000000 0x00000 0x00000 RW 0x10 Section to Segment mapping: Segment Sections... 00 .note.gnu.property 01 .text 02 .bss 03 .note.gnu.property 04 .note.gnu.property 05 text segment is 1, so 0 will probably not move? What would be the portable way of setting the image base? -- You are receiving this mail because: You are on the CC list for the bug.