1abs = 0x1234 2 .extern ext 3 .weak weak 4 .comm comm,4 5 .global glob 6 7 .data 8data: .long 0 9 10 .text 11loc: 12 mov abs, %eax 13glob: 14 mov ext, %eax 15 mov weak, %eax 16 mov comm, %eax 17 mov loc, %eax 18 mov glob, %eax 19 mov abs2, %eax 20 mov loc2, %eax 21 mov glob2,%eax 22 mov data, %eax 23 mov data2,%eax 24 mov abs - abs, %eax 25 mov ext - abs, %eax 26 mov weak - abs, %eax 27 mov comm - abs, %eax 28 mov loc - abs, %eax 29 mov glob - abs, %eax 30 mov abs2 - abs, %eax 31 mov loc2 - abs, %eax 32 mov glob2 - abs, %eax 33 mov data - abs, %eax 34 mov data2 - abs, %eax 35 mov abs - abs2,%eax 36 mov ext - abs2,%eax 37 mov weak - abs2,%eax 38 mov comm - abs2,%eax 39 mov loc - abs2,%eax 40 mov glob - abs2,%eax 41 mov abs2 - abs2,%eax 42 mov loc2 - abs2,%eax 43 mov glob2 - abs2,%eax 44 mov data - abs2,%eax 45 mov data2 - abs2,%eax 46 mov loc2 - loc, %eax 47 mov glob - loc, %eax 48 mov glob - loc2,%eax 49 mov glob2 - loc, %eax 50 mov glob2 - loc2,%eax 51 52 .org 0x100 53loc2: 54 .global glob2 55glob2 = loc2 + 5 56abs2 = 0x9876 57 58 .data 59data2: .long 0 60