--update-section issue updating section s_addr
Created by: mikedefrancis
I am using --update-section to patch the contents of linux elf files.
Section s_addr addresses are not updated after modifying sections that come before. Program still executes, but section ram mapping is no longer accurately represented in the elf linker view.
When I use --update-section to append additional code to the .init and .text sections, the program header addresses and sizes are updated correctly for the program to load, and the section header sizes and file offsets are updated correctly. The problem is that the section s_addr field is not updated correctly, causing my disassembler to become very confused.