On 7/26/22 11:22, Janosch Frank wrote: > Allocating the header lets us write it at a later time and hence also > allows us to change section and segment table offsets until we > finally write it. > Where are you making use of this? You set e_shstrndx in prepare_elf_section_hdrs, but that is not required, is it? As far as I understand we know shdr_num after dump_init so that could be moved.
- [PATCH v4 06/17] dump: Rework dump_calculate_size... Janosch Frank
- Re: [PATCH v4 06/17] dump: Rework dump_calcu... Marc-André Lureau
- [PATCH v4 05/17] dump: Cleanup and annotate guest... Janosch Frank
- Re: [PATCH v4 05/17] dump: Cleanup and annot... Marc-André Lureau
- Re: [PATCH v4 05/17] dump: Cleanup and annot... Janis Schoetterl-Glausch
- [PATCH v4 12/17] dump/dump: Add arch section supp... Janosch Frank
- Re: [PATCH v4 12/17] dump/dump: Add arch sec... Marc-André Lureau
- Re: [PATCH v4 12/17] dump/dump: Add arch... Janosch Frank
- Re: [PATCH v4 12/17] dump/dump: Add ... Marc-André Lureau
- [PATCH v4 07/17] dump: Allocate header Janosch Frank
- Re: [PATCH v4 07/17] dump: Allocate header Janis Schoetterl-Glausch
- [PATCH v4 08/17] dump: Split write of section hea... Janosch Frank
- Re: [PATCH v4 08/17] dump: Split write of se... Janis Schoetterl-Glausch
- Re: [PATCH v4 08/17] dump: Split write of se... Janis Schoetterl-Glausch
- Re: [PATCH v4 08/17] dump: Split write o... Janosch Frank
- [PATCH v4 09/17] dump: Reorder struct DumpState Janosch Frank
- Re: [PATCH v4 09/17] dump: Reorder struct Du... Marc-André Lureau
- Re: [PATCH v4 09/17] dump: Reorder struct Du... Janis Schoetterl-Glausch
- Re: [PATCH v4 09/17] dump: Reorder struc... Janosch Frank
- [PATCH v4 10/17] dump: Swap segment and section h... Janosch Frank
- Re: [PATCH v4 10/17] dump: Swap segment and ... Marc-André Lureau