title: How can I get the _GLOBAL_OFFSET_TABLE_ address in my program?
body: <p>I want to get the address of _GLOBAL_OFFSET_TABLE_ in my program. One way is to use the <a href="http://linux.about.com/library/cmd/blcmdl1_nm.htm" rel="nofollow">nm</a> command in Linux, maybe redirect the output to a file and parse that file to get address of _GLOBAL_OFFSET_TABLE_. However, that method seems to be quite inefficient. What are some more efficient methods of doing it? </p>