This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
I don't think there is any support for PIE in the current plugin api.
Gold currently only passes the plugin LDPO_EXEC, which causes problem
when the plugin then gives gold an object with invalid relocations.
The attached patches add a LDPO_PIE. I don't think this is a backward
compatibility problem, since any plugin producing code for a PIE
thinking it is a regular executable is already broken.
Cheers,
Rafael
gold patch:
2012-06-12 Rafael Ãvila de EspÃndola <respindola@mozilla.com>
* plugin.cc (Plugin::load): Handle position independent executables.
include patch:
2012-06-12 Rafael Ãvila de EspÃndola <respindola@mozilla.com>
* plugin-api.h (ld_plugin_output_file_type): Add LDPO_PIE.
Attachment:
gold.patch
Description: Binary data
Attachment:
include.patch
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |