https://sourceware.org/bugzilla/show_bug.cgi?id=31795
--- Comment #60 from Adhemerval Zanella <adhemerval.zanella at linaro dot org> --- (In reply to mintsuki from comment #59) > (In reply to Adhemerval Zanella from comment #58) > > (In reply to mintsuki from comment #41) > > So maybe we either enable this iff targeting Linux, or check if kernel is > > willing to enforce e_entry even for DYN. > > > > I am not sure if the correct approach is relaxing the > > '-Ttext-segment/--image-base' to be a minimum address. For this, I would > > add another linker option. > > I am not sure what you mean with "willing to enforce e_entry". I meant enforcing the vaddr set by e_entry for ET_DYN (and thus disabling ASLR), so this hack won't be necessary for Linux. > > In any case, how about checking what the generated ELF file's OS/ABI is and > only doing the DYN->EXEC hack if it happens to be GNU/Linux? That was my 'So maybe we either enable this iff targeting Linux' suggestion was well. -- You are receiving this mail because: You are on the CC list for the bug.