Skip to content

have_ld_plugin_support in test/lit.cfg doesn't work properly #22938

@hjl-tools

Description

@hjl-tools
Bugzilla Link 22564
Version unspecified
OS Linux

Extended Description

have_ld_plugin_support in test/lit.cfg has 2 issues:

  1. It expects gold:

    ld_version = subprocess.Popen(['ld', '--version'], stdout = subprocess.PIPE)
    if not 'GNU gold' in ld_version.stdout.read():
    return False

Ld on binutils master branch supports LLVM plugin.

  1. It expects elf32ppc support:

emulations = fields[2].split()
if 'elf32ppc' not in emulations or 'elf_x86_64' not in emulations:
return False

Even my gold doesn't have elf32ppc support.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions