Skip to content
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

2.3.0 #18

Merged
merged 21 commits into from
Nov 5, 2023
Merged

2.3.0 #18

merged 21 commits into from
Nov 5, 2023

Conversation

AngheloAlf
Copy link
Member

[2.3.0] - 2023-11-05

Added

  • Support for parsing clang lld's map fles.
  • New functions:
    • MapFile.parseMapContents/MapFile::parse_map_contents
      • Parses the map contents passed as the argument, without requiring the map
        being on an actual file.
      • The map format will be guessed on the contents. Currently both the GNU ld
        and clang ld.lld map formats are recognized.
    • MapFile.parseMapContentsGNU/MapFile::parse_map_contents_gnu
      • Parses the map contents passed as the argument, without requiring the map
        being on an actual file.
      • This function only parses the GNU ld map format.
    • MapFile.parseMapContentsLLD/MapFile::parse_map_contents_lld
      • Parses the map contents passed as the argument, without requiring the map
        being on an actual file.
      • This function only parses the clang ld.lld map format.
  • New members:
    • Symbol.align/Symbol::align, File.align/File::align and
      Segment.align/Segment::align: The alignment the given type. This member
      will be filled by the parser only if the mapfile provides this information.

Changed

  • MapFile.readMapFile/MapFile::read_map_file can now guess the map format
    between any of the known formats.
  • Some known symbol names will be automatically filtered out during the parsing
    step.
    • Currently only gcc2_compiled. is filtered out.

Fixed

  • Fix parser not detecting *fill* lines on GNU ld maps if they specified the
    value that was used for filling/padding.
  • .sbss, COMMON and .scommon sections are now properly considered noload
    sections.

@AngheloAlf AngheloAlf merged commit ff3d522 into master Nov 5, 2023
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant