https://sourceware.org/bugzilla/show_bug.cgi?id=32896
--- Comment #1 from Matthew Malcomson <mmalcomson at nvidia dot com> --- Created attachment 16045 --> https://sourceware.org/bugzilla/attachment.cgi?id=16045&action=edit WIP-patch-for-comment Adding a WIP patch that is at least passing this testcase. Mostly I'm attaching this hoping that someone could comment on whether it's going in the right lines. Main questions that I'm looking to answer are: 1) Adjusting the p_filesz and p_memsz manually to account for any padding. This ends up with padding in both the file and the VMA. 2) Is there any other clause somewhere later in the file that I could merge with? There are a bunch of clauses that *seem* promising but I couldn't quite make sure they fit. 3) I expect that I can't use `vma_page_aligned_bias` based on the section as I'm doing in this patch but instead have to find the total PT_TLS alignment that is needed -- in case the user used some linker script that puts the .tbss before the .tdata section. Does that sound right? In that case it seems a little restructuring would be worthwhile. Any other corrections / extra information would be welcome. Also any high-level description of the requirements here would be welcome -- I'm slowly getting to grips with it but could easily be missing something. -- You are receiving this mail because: You are on the CC list for the bug.