I ended up "borrowing" some of this code to make a Ghidra plugin that uses this info to mark up a ROM file you have loaded into it with symbols, references, labels and comments. It's by no means finished though...
(I'll start a new thread when I've got something decent in Ghidra , not trying to...