Comment cites non-existent fields of struct link_map

Andrea Monaco andrea.monaco@autistici.org
Thu Dec 30 21:53:13 GMT 2021


In dl_main (elf/rtld.c), after creating a struct link_map called
main_map for the main executable and filling some fields, there's a
comment that says

      /* At this point we are in a bit of trouble.  We would have to
	 fill in the values for l_dev and l_ino.  But in general we
	 do not know where the file is.  We also do not handle AT_EXECFD
	 even if it would be passed up.


But a struct link_map has no fields l_dev and l_ino.  Maybe they mean
just l_name, or they talk about something totally different?



Thanks,

Andrea Monaco


More information about the Libc-alpha mailing list