def METHOD_NAME(tmp_path, mode):
    sample = get_sample("ELF/docker-init.elf")
    elf: lief.ELF.Binary = lief.ELF.parse(sample)
    elf.relocate_phdr_table(mode)
    segment = lief.ELF.Segment()
    segment.type = lief.ELF.SEGMENT_TYPES.LOAD
    segment.content = [0xcc for _ in range(0x2000)]
    elf.add(segment)
    outpath = tmp_path / "modified.elf"
    elf.write(outpath.as_posix())
    outpath.chmod(outpath.stat().st_mode | stat.S_IEXEC)
    popen_args = {
        "stdout": subprocess.PIPE,
        "stderr": subprocess.STDOUT,
        "universal_newlines": True
    }
    with Popen([outpath.as_posix(), "--version"], **popen_args) as proc:
        stdout = proc.stdout.read()
        assert "tini version 0.19.0" in stdout, f"Error: {stdout}"