-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[lldb][AIX] Added XCOFF ParseSymtab handling #141577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
DhruvSrivastavaX
merged 8 commits into
llvm:main
from
DhruvSrivastavaX:aix-xcoff-parsesymtab
Jun 17, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
a62cd7b
Added XCOFF ParseSymtab handling
DhruvSrivastavaX 21f5a39
cleanup
DhruvSrivastavaX 4d63189
Addressed comments
DhruvSrivastavaX 018b7dd
Merge branch 'llvm:main' into aix-xcoff-parsesymtab
DhruvSrivastavaX e324a3b
Added comments and tests
DhruvSrivastavaX 1706ebf
Added 32-bit tc
DhruvSrivastavaX c8bfbbc
typo
DhruvSrivastavaX 47ac6a2
Isolated the tests to new cases
DhruvSrivastavaX File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# RUN: yaml2obj %s -o %t | ||
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s | ||
# CHECK: Index UserID DSX Type File Address/Value Load Address Size Flags Name | ||
# CHECK: [ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno | ||
# CHECK: [ 1] 4294967295 Code 0x0000000100000500 0x0000000000000398 0x00000000 __threads_init | ||
# CHECK: [ 2] 4294967295 Data 0x0000000110000a70 0x0000000000000060 0x00000000 __threads_init | ||
# CHECK: [ 3] 4294967295 Invalid 0x0000000110000ad0 0x00000000000000b0 0x00000000 TOC | ||
# CHECK: [ 4] 4294967295 Invalid 0x0000000100000898 0x00000000100001d8 0x00000000 text | ||
# CHECK: [ 5] 4294967295 Code 0x0000000100000898 0x00000000100001d8 0x00000000 main | ||
|
||
--- !XCOFF | ||
FileHeader: | ||
MagicNumber: 0x1F7 | ||
NumberOfSections: 2 | ||
CreationTime: 000000000 | ||
Flags: 0x0002 | ||
Sections: | ||
- Name: .text | ||
Address: 0x100000438 | ||
Size: 0x38 | ||
FileOffsetToData: 0x0 | ||
FileOffsetToLineNumbers: 0x0 | ||
NumberOfLineNumbers: 0x0 | ||
Flags: [ STYP_TEXT ] | ||
SectionData: E8C20000 | ||
- Name: .data | ||
Address: 0x1100008D2 | ||
Size: 0x2AE | ||
FileOffsetToData: 0x8D2 | ||
FileOffsetToRelocations: 0x132E | ||
FileOffsetToLineNumbers: 0x0 | ||
NumberOfRelocations: 0x22 | ||
NumberOfLineNumbers: 0x0 | ||
Flags: [ STYP_DATA ] | ||
SectionData: '' | ||
Symbols: | ||
- Name: errno | ||
Value: 0x0 | ||
Section: N_UNDEF | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 0 | ||
StorageMappingClass: XMC_RW | ||
SectionOrLengthLo: 0 | ||
SectionOrLengthHi: 0 | ||
- Name: .__threads_init | ||
Value: 0x100000500 | ||
Section: .text | ||
Type: 0x20 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 2 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLengthLo: 80 | ||
SectionOrLengthHi: 0 | ||
- Name: __threads_init | ||
Value: 0x110000A70 | ||
Section: .data | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 25 | ||
StorageMappingClass: XMC_DS | ||
SectionOrLengthLo: 24 | ||
SectionOrLengthHi: 0 | ||
- Name: TOC | ||
Value: 0x110000AD0 | ||
Section: .data | ||
Type: 0x0 | ||
StorageClass: C_HIDEXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 25 | ||
StorageMappingClass: XMC_TC0 | ||
SectionOrLengthLo: 0 | ||
SectionOrLengthHi: 0 | ||
- Name: .text | ||
Value: 0x100000898 | ||
Section: .text | ||
Type: 0x0 | ||
StorageClass: C_HIDEXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 17 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLengthLo: 58 | ||
SectionOrLengthHi: 0 | ||
- Name: .main | ||
Value: 0x100000898 | ||
Section: .text | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
SymbolAlignmentAndType: 2 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLengthLo: 135 | ||
SectionOrLengthHi: 0 | ||
... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
# RUN: yaml2obj %s -o %t | ||
# RUN: %lldb %t -o "image dump symtab" -o exit | FileCheck %s | ||
# CHECK: Index UserID DSX Type File Address/Value Load Address Size Flags Name | ||
# CHECK: [ 0] 4294967295 Invalid 0xffffffffffffffff 0x0000000000000000 0x00000000 errno | ||
# CHECK: [ 1] 4294967295 Code 0x0000000010000320 0x0000000000000420 0x00000000 __threads_init | ||
# CHECK: [ 2] 4294967295 Data 0x0000000020000920 0x000000000000003c 0x00000000 __threads_init | ||
# CHECK: [ 3] 4294967295 Invalid 0x000000002000095c 0x0000000000000060 0x00000000 TOC | ||
# CHECK: [ 4] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 text | ||
# CHECK: [ 5] 4294967295 Invalid 0x0000000010000740 0x000000000000003a 0x00000000 main | ||
|
||
--- !XCOFF | ||
FileHeader: | ||
MagicNumber: 0x1DF | ||
NumberOfSections: 2 | ||
CreationTime: 000000000 | ||
Flags: 0x1002 | ||
Sections: | ||
- Name: .text | ||
Address: 0x10000268 | ||
Size: 0x512 | ||
FileOffsetToData: 0x268 | ||
FileOffsetToRelocations: 0xECC | ||
FileOffsetToLineNumbers: 0x0 | ||
NumberOfRelocations: 0x24 | ||
NumberOfLineNumbers: 0x0 | ||
Flags: [ STYP_TEXT ] | ||
SectionData: 80C20000 | ||
- Name: .data | ||
Address: 0x2000077A | ||
Size: 0x242 | ||
FileOffsetToData: 0x77A | ||
FileOffsetToRelocations: 0x1034 | ||
FileOffsetToLineNumbers: 0x0 | ||
NumberOfRelocations: 0x25 | ||
NumberOfLineNumbers: 0x0 | ||
Flags: [ STYP_DATA ] | ||
SectionData: '' | ||
Symbols: | ||
- Name: errno | ||
Value: 0x0 | ||
Section: N_UNDEF | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_RW | ||
SectionOrLength: 0 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
- Name: .__threads_init | ||
Value: 0x10000320 | ||
Section: .text | ||
Type: 0x20 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLength: 84 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
- Name: __threads_init | ||
Value: 0x20000920 | ||
Section: .data | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_DS | ||
SectionOrLength: 12 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
- Name: TOC | ||
Value: 0x2000095C | ||
Section: .data | ||
Type: 0x0 | ||
StorageClass: C_HIDEXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_TC0 | ||
SectionOrLength: 0 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
- Name: .text | ||
Value: 0x10000740 | ||
Section: .text | ||
Type: 0x0 | ||
StorageClass: C_HIDEXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLength: 58 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
- Name: .main | ||
Value: 0x10000740 | ||
Section: .text | ||
Type: 0x0 | ||
StorageClass: C_EXT | ||
NumberOfAuxEntries: 1 | ||
AuxEntries: | ||
- Type: AUX_CSECT | ||
ParameterHashIndex: 0 | ||
TypeChkSectNum: 0 | ||
StorageMappingClass: XMC_PR | ||
SectionOrLength: 137 | ||
StabInfoIndex: 0 | ||
StabSectNum: 0 | ||
|
||
... |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.