RFC: [PATCH] Add output_type to bfd_link_info

H.J. Lu hongjiu.lu@intel.com
Mon Aug 17 15:43:00 GMT 2015


The "shared" field in bfd_link_info is set for both DSO and and PIE.
There are separate fields for executable and relocatable outputs.  This
patch adds an "output_type" field:

enum output_type
{
  type_unknown = 0,
  type_executable,
  type_dll,
  type_relocatable
};

and a "pic" field to bfd_link_info to replace shared, executable and
relocatable fields so that we can use the "output_type" field to check
for output type and the "pic" field check if output is PIC.  Macros:

are provided to check for output features.

Any comments, objections, feedbacks?


H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-output_type-to-bfd_link_info.patch.xz
Type: application/x-xz
Size: 83144 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150817/0a8ea33d/attachment.xz>


More information about the Binutils mailing list