pe.em and pep.em make_import_fixup
authorAlan Modra <amodra@gmail.com>
Sun, 7 May 2023 23:46:24 +0000 (09:16 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 8 May 2023 04:29:35 +0000 (13:59 +0930)
commitf35cc0decdd7595b34daa30803038342864b7888
tree8bc2a45986ea783d9c645726b1547466eef385a8
parentdefb881754df013e337eb981bc54b5e83fd01fa4
pe.em and pep.em make_import_fixup

This is a little cleanup that I made when looking at pr30343 that
makes it more obvious that make_import_fixup in both files are
identical (and in fact the new pep.em read_addend could be used in
both files).

* emultempl/pep.em (read_addend): Extract from..
(make_import_fixup): ..here.
* emultempl/pe.em (read_addend): Similarly.
(make_import_fixup): Similarly.  Add debug code from pep.em.
ld/emultempl/pe.em
ld/emultempl/pep.em