xcoff-symbols.test 15.7 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446
# This file tests the ability of llvm-readobj to display the symbol table for a
# 32-bit XCOFF object file.
RUN: llvm-readobj --symbols %p/Inputs/aix_xcoff_xlc_test8.o | \
RUN: FileCheck --check-prefix=SYMBOL32 %s

SYMBOL32: File: {{.*}}aix_xcoff_xlc_test8.o
SYMBOL32-NEXT: Format: aixcoff-rs6000
SYMBOL32-NEXT: Arch: powerpc
SYMBOL32-NEXT: AddressSize: 32bit
SYMBOL32-NEXT: Symbols [
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 0
SYMBOL32-NEXT:     Name: .file
SYMBOL32-NEXT:     Value (SymbolTableIndex): 0x0
SYMBOL32-NEXT:     Section: N_DEBUG
SYMBOL32-NEXT:     Source Language ID: TB_C (0x0)
SYMBOL32-NEXT:     CPU Version ID: TCPU_COM (0x3)
SYMBOL32-NEXT:     StorageClass: C_FILE (0x67)
SYMBOL32-NEXT:     NumberOfAuxEntries: 3
SYMBOL32-NEXT:     File Auxiliary Entry {
SYMBOL32-NEXT:       Index: 1
SYMBOL32-NEXT:       Name: test8.c
SYMBOL32-NEXT:       Type: XFT_FN (0x0)
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:     File Auxiliary Entry {
SYMBOL32-NEXT:       Index: 2
SYMBOL32-NEXT:       Name: Sun Apr 28 15:56:49 2019
SYMBOL32-NEXT:       Type: XFT_CT (0x1)
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:     File Auxiliary Entry {
SYMBOL32-NEXT:       Index: 3
SYMBOL32-NEXT:       Name: IBM XL C for AIX, Version 16.1.0.2
SYMBOL32-NEXT:       Type: XFT_CV (0x2)
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 4
SYMBOL32-NEXT:     Name: .text
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x0
SYMBOL32-NEXT:     Section: .text
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_STAT (0x3)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     Sect Auxiliary Entry For Stat {
SYMBOL32-NEXT:       Index: 5
SYMBOL32-NEXT:       SectionLength: 256
SYMBOL32-NEXT:       NumberOfRelocEnt: 4
SYMBOL32-NEXT:       NumberOfLineNum: 0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 6
SYMBOL32-NEXT:     Name: .data
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x100
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_STAT (0x3)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     Sect Auxiliary Entry For Stat {
SYMBOL32-NEXT:       Index: 7
SYMBOL32-NEXT:       SectionLength: 60
SYMBOL32-NEXT:       NumberOfRelocEnt: 11
SYMBOL32-NEXT:       NumberOfLineNum: 0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 8
SYMBOL32-NEXT:     Name: .bss
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x13C
SYMBOL32-NEXT:     Section: .bss
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_STAT (0x3)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     Sect Auxiliary Entry For Stat {
SYMBOL32-NEXT:       Index: 9
SYMBOL32-NEXT:       SectionLength: 4
SYMBOL32-NEXT:       NumberOfRelocEnt: 0
SYMBOL32-NEXT:       NumberOfLineNum: 0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 10
SYMBOL32-NEXT:     Name:
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x0
SYMBOL32-NEXT:     Section: .text
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 11
SYMBOL32-NEXT:       SectionLen: 256
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 7
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_PR (0x0)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 12
SYMBOL32-NEXT:     Name: .fun1
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x0
SYMBOL32-NEXT:     Section: .text
SYMBOL32-NEXT:     Type: 0x20
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 13
SYMBOL32-NEXT:       ContainingCsectSymbolIndex: 10
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 0
SYMBOL32-NEXT:       SymbolType: XTY_LD (0x2)
SYMBOL32-NEXT:       StorageMappingClass: XMC_PR (0x0)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 14
SYMBOL32-NEXT:     Name: .main
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x60
SYMBOL32-NEXT:     Section: .text
SYMBOL32-NEXT:     Type: 0x20
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 15
SYMBOL32-NEXT:       ContainingCsectSymbolIndex: 10
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 0
SYMBOL32-NEXT:       SymbolType: XTY_LD (0x2)
SYMBOL32-NEXT:       StorageMappingClass: XMC_PR (0x0)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 16
SYMBOL32-NEXT:     Name: TOC
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x100
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 17
SYMBOL32-NEXT:       SectionLen: 0
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC0 (0xF)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 18
SYMBOL32-NEXT:     Name:
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x114
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 19
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 20
SYMBOL32-NEXT:     Name:
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x134
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 21
SYMBOL32-NEXT:       SectionLen: 5
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 3
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_RO (0x1)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 22
SYMBOL32-NEXT:     Name: _$STATIC_BSS
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x13C
SYMBOL32-NEXT:     Section: .bss
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 23
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_CM (0x3)
SYMBOL32-NEXT:       StorageMappingClass: XMC_RW (0x5)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 24
SYMBOL32-NEXT:     Name: _$STATIC_BSS
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x104
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 25
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 26
SYMBOL32-NEXT:     Name: fun1
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x118
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 27
SYMBOL32-NEXT:       SectionLen: 12
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_DS (0xA)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 28
SYMBOL32-NEXT:     Name: fun1
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x100
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 29
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 30
SYMBOL32-NEXT:     Name: p
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x130
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 31
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_RW (0x5)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 32
SYMBOL32-NEXT:     Name: p
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x108
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 33
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 34
SYMBOL32-NEXT:     Name: main
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x124
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 35
SYMBOL32-NEXT:       SectionLen: 12
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_DS (0xA)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 36
SYMBOL32-NEXT:     Name: main
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x10C
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 37
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 38
SYMBOL32-NEXT:     Name: i
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x0
SYMBOL32-NEXT:     Section: N_UNDEF
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 39
SYMBOL32-NEXT:       SectionLen: 0
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 0
SYMBOL32-NEXT:       SymbolType: XTY_ER (0x0)
SYMBOL32-NEXT:       StorageMappingClass: XMC_UA (0x4)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 40
SYMBOL32-NEXT:     Name: i
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x110
SYMBOL32-NEXT:     Section: .data
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_HIDEXT (0x6B)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 41
SYMBOL32-NEXT:       SectionLen: 4
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 2
SYMBOL32-NEXT:       SymbolType: XTY_SD (0x1)
SYMBOL32-NEXT:       StorageMappingClass: XMC_TC (0x3)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT:   Symbol {
SYMBOL32-NEXT:     Index: 42
SYMBOL32-NEXT:     Name: .fun
SYMBOL32-NEXT:     Value (RelocatableAddress): 0x0
SYMBOL32-NEXT:     Section: N_UNDEF
SYMBOL32-NEXT:     Type: 0x0
SYMBOL32-NEXT:     StorageClass: C_EXT (0x2)
SYMBOL32-NEXT:     NumberOfAuxEntries: 1
SYMBOL32-NEXT:     CSECT Auxiliary Entry {
SYMBOL32-NEXT:       Index: 43
SYMBOL32-NEXT:       SectionLen: 0
SYMBOL32-NEXT:       ParameterHashIndex: 0x0
SYMBOL32-NEXT:       TypeChkSectNum: 0x0
SYMBOL32-NEXT:       SymbolAlignmentLog2: 0
SYMBOL32-NEXT:       SymbolType: XTY_ER (0x0)
SYMBOL32-NEXT:       StorageMappingClass: XMC_PR (0x0)
SYMBOL32-NEXT:       StabInfoIndex: 0x0
SYMBOL32-NEXT:       StabSectNum: 0x0
SYMBOL32-NEXT:     }
SYMBOL32-NEXT:   }
SYMBOL32-NEXT: ]

# The object file used is generated by the following source file
# and command on AIX:
#
# > cat test8.c
#
# extern int i;
# extern int TestforXcoff;
# extern int fun(int i);
# static int static_i;
# char* p="abcd";
# int fun1(int j) {
#   static_i++;
#   j++;
#   j=j+*p;
#   return j;
# }
#
# int main() {
#   i++;
#   fun(i);
#   return fun1(i);
# }
#
# > xlc -c test8.c -o aix_xcoff_xlc_test8.o