RFC: [PATCH] Support -plugin-opt=disable-output for LLVM plugin
H.J. Lu
hjl.tools@gmail.com
Thu Feb 12 02:48:00 GMT 2015
On Wed, Feb 11, 2015 at 6:42 PM, Rafael Espíndola
<rafael.espindola@gmail.com> wrote:
>> You can use atexit. It is used elsewhere in llvm.
>
> The plugin needs an early exit, not a way to schedule stuff to run at exit.
If that is the case, my patch is the way to go.
>> 1. It expects gold:
>>
>> ld_version = subprocess.Popen(['ld', '--version'], stdout = subprocess.PIPE)
>> if not 'GNU gold' in ld_version.stdout.read():
>> return False
>
> This should be fixed to be more general.
>
>> 2. 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.
>
> This should be moved to a ppc specific subdirectory.
>
Thanks.
--
H.J.
More information about the Binutils
mailing list