Quite helpful in understanding how GOT table is used in pic code, although there's not much info on how GOT table is created.
@CSEPracticals5 жыл бұрын
Previous lecture Sir ?
@TheSourav77215 жыл бұрын
Sir , could you please share the link for the last session.
@CSEPracticals5 жыл бұрын
got it, complete course is here : nptel.ac.in/courses/106106199/18
@amoldhamale32022 жыл бұрын
Didn't anyone notice that he modified the entry of mylib_int in GOT to point to address of glob but it actually ended up modifying the address of glob itself? Shouldn't the output have been 555 for both print statements given that you messed with the mylib_int entry and not the glob entry?
@amoldhamale32024 ай бұрын
came back to this video after 2 years and got the answer to my comment. The reason 100 is printed for both variables is the set_mylib_int call in main prior to printing. This call sets the glob variable to 100 since the GOT entry of mylib_int points to address of glob. At this point the original value of 5555 in glob is overwritten to 100.