tools/android/elf_compression/compress_section.py
def _FindNewVaddr(phdrs):
  """Returns the virt address that is safe to use for insertion of new data."""
  max_vaddr = 0
  # Strictly speaking it should be sufficient to look through only LOAD
  # segments, but better be safe than sorry.
  for phdr in phdrs:
    max_vaddr = max(max_vaddr, phdr.p_vaddr + phdr.p_memsz)
  # When the mapping occurs end address is increased to be a multiple
  # of page size. To ensure compatibility with anything relying on this
  # behaviour we take this increase into account.
  max_vaddr = AlignUp(max_vaddr)
  return max_vaddr
Returns the virt address that is safe to use for insertion of new data.
Returns the virt address that is safe to use for insertion of new data.
Returns the virt address that is safe to use for insertion of new data .
def _FindNewVaddr(phdrs):
  max_vaddr = 0
  for phdr in phdrs:
    max_vaddr = max(max_vaddr, phdr.p_vaddr + phdr.p_memsz)
  max_vaddr = AlignUp(max_vaddr)
  return max_vaddr
def _FindNewVaddr ( phdrs ) : max_vaddr = 0 for phdr in phdrs : max_vaddr = max ( max_vaddr , phdr . p_vaddr + phdr . p_memsz ) max_vaddr = AlignUp ( max_vaddr ) return max_vaddr
Returns the virt address that is safe to use for insertion of new data.
Returns the virt address that is safe to use for insertion of new data .
"""Returns the virt address that is safe to use for insertion of new data.""" # Strictly speaking it should be sufficient to look through only LOAD # segments, but better be safe than sorry. # When the mapping occurs end address is increased to be a multiple # of page size. To ensure compatibility with anything relying on this # behaviour we take this increase into account.
phdrs