This is the mail archive of the libc-alpha@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Has the dynamic section to be read-write?


> 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.)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]