DT_TEXTREL

Colin Burgess cburgess@qnx.com
Mon May 14 08:21:00 GMT 2001


There seems to be a problem in the elf linker where a DT_TEXTREL is
not being created when a .rel.text is present.  This is because the
.text segment is marked as writeable until the last minute when
config.text_read_only is checked.

I want to check for text relocations at load time, and a DT_TEXTREL
seems to be the cheapest method so far.

Any suggestions as to how best to resolve this bug, or a better method
for detecting relocs against readonly sections such as .text?

-- 
cburgess@qnx.com



More information about the Binutils mailing list