aboutsummaryrefslogtreecommitdiff
path: root/libctf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-01-11 16:20:36 +1030
committerAlan Modra <amodra@gmail.com>2025-01-20 07:13:46 +1030
commitcb6326b5ceb7cfc784003c05b90b351d78c755fd (patch)
tree7f9ee6febac9179e3bbea81799c7dc5c99edffdc /libctf
parent354ed4d4a26da57cf2a2b9b463c4262b18c48021 (diff)
downloadbinutils-cb6326b5ceb7cfc784003c05b90b351d78c755fd.zip
binutils-cb6326b5ceb7cfc784003c05b90b351d78c755fd.tar.gz
binutils-cb6326b5ceb7cfc784003c05b90b351d78c755fd.tar.bz2
sec->alloced and freeing section contents
This modifies _bfd_elf_free_cached_info to unmap/free section contents. To do that we need to *not* free sections where contents are bfd_alloc'd or point to constant strings or somesuch. I've chosen to implement this be adding another flag to struct bfd_section, "alloced" to say the section contents can't be freed. Most of the patch is about setting that flag in many places.
Diffstat (limited to 'libctf')
0 files changed, 0 insertions, 0 deletions