Branch: refs/heads/bbiiggppiigg/update-find-last-loadable-section
  Home:   https://github.com/dyninst/dyninst
  Commit: f482bd3c22b94e5822d4077c3163e82f67451a06
      
https://github.com/dyninst/dyninst/commit/f482bd3c22b94e5822d4077c3163e82f67451a06
  Author: wuxx1279 <[email protected]>
  Date:   2026-03-05 (Thu, 05 Mar 2026)

  Changed paths:
    M symtabAPI/src/emitElf.C
    M symtabAPI/src/emitElf.h

  Log Message:
  -----------
  Fix logic for finding last loadable section

The last loadable section of a binary is the last section of the
last loadable segment, which is where dyninst inserts its newly
created sections.

The current implementation asumes the last section will end on the
boundary of the last segment, which does not hold for certain
binaries.

This PR updates the logic to find the section with the highest
address within the bound of the last loadable segment, which
relaxes the assumption.



To unsubscribe from these emails, change your notification settings at 
https://github.com/dyninst/dyninst/settings/notifications
_______________________________________________
Dyninst-api mailing list
[email protected]
https://lists.cs.wisc.edu/mailman/listinfo/dyninst-api

Reply via email to