Merge "Fix elf writer to properly handle empty text sections"