Skip to content
  • Alan Modra's avatar
    PR24042, Global-buffer-overflow problem in output_rel_find · 8fd04a42
    Alan Modra authored
    place_orphan handled ELF SHT_REL/SHT_RELA specially, output_rel_find
    didn't.  This mismatch was a bug and also meant it was possible to
    craft an object where ld accessed section->name out of bounds.
    
    	PR 24042
    	* emultempl/elf32.em (output_rel_find): Drop "sec" param.  Add
    	"rela".
    	(gld${EMULATION_NAME}_place_orphan): Use sh_type to calculate
    	"rela" param of output_rel_find when ELF.  Tidy uses of elfinput.
    8fd04a42
To find the state of this project's repository at the time of any of these versions, check out the tags.