1 #name: GOT dump (readelf -A) test 2 2 #source: got-dump-2.s 3 #as: -mips3 -EB -64 4 #ld: -Tgot-dump-2.ld -shared -melf64btsmip 5 #readelf: -A 6 7 Primary GOT: 8 Canonical gp value: 0001236000008000 9 10 Reserved entries: 11 Address Access Initial Purpose 12 0001236000000010 -32752\(gp\) 0000000000000000 Lazy resolver 13 0001236000000018 -32744\(gp\) 8000000000000000 Module pointer \(GNU extension\) 14 15 Local entries: 16 Address Access Initial 17 0001236000000020 -32736\(gp\) 0001236000000000 18 0001236000000028 -32728\(gp\) 0001236000000008 19 20 Global entries: 21 Address Access Initial Sym.Val. Type Ndx Name 22 0001236000000030 -32720\(gp\) 0001235000000020 0001235000000020 FUNC UND extern 23 0001236000000038 -32712\(gp\) 0001235000000000 0001235000000000 FUNC 7 glob 24 0001236000000040 -32704\(gp\) 0000000000000000 0000000000000000 NOTYPE UND undef 25 26