Has the dynamic section to be read-write?

Roland McGrath roland@frob.com
Tue Nov 23 11:18:00 GMT 1999


> Do I understand you correctly that you suggest to change the member
> l_info from struct link_map from:
> 
>     ElfW(Dyn) *l_info[DT_NUM + DT_PROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM];
> 
> to 
>     ElfW(Dyn) l_info[DT_NUM + DT_PROCNUM + DT_VERSIONTAGNUM + DT_EXTRANUM];
> ?

Well, whatever works.  I don't see a point in copying ElfNN_Dyn structures
instead of just the value.  You also need to make sure your solution
satisfactorily represents missing tags, now checked for by l_info[DT_FOO]
being null.  (A present tag with a value that happens to be zero has a
different meaning that the absence of the tag.)


More information about the Libc-alpha mailing list