Remove link_info.pic
authorAlan Modra <amodra@gmail.com>
Wed, 19 Aug 2015 03:02:54 +0000 (12:32 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 19 Aug 2015 03:23:54 +0000 (12:53 +0930)
commit64d94ba01a4f56ac10bb277e66bb00d82bd97f10
tree62c874d41a10602671ff90819aef826e06ed57c5
parent3cbc1e5e68341e53a03fe7e9d38fc02e0d78c418
Remove link_info.pic

Adding type_pie to output_type allows us to remove link_info.pic and
with some reordering of the enum, produces better code.

include/
* bfdlink.h (enum output_type): Delete type_executable, add type_pde
and type_pie.  Reorder.
(struct bfd_link_info): Delete pic field.
(bfd_link_executable, bfd_link_pde, bfd_link_pie, bfd_link_pic): Adjust.
ld/
* emultempl/aix.em: Don't set link_info.pic.
* emultempl/pe.em: Likewise.
* emultempl/pep.em: Likewise.
* emultempl/sunos.em: Likewise.
* lexsup.c (parse_args): Likewise.  Set type_pie for -pie.
* plugin.c (set_tv_header <LDPT_LINKER_OUTPUT>): Simplify.
include/ChangeLog
include/bfdlink.h
ld/ChangeLog
ld/emultempl/aix.em
ld/emultempl/pe.em
ld/emultempl/pep.em
ld/emultempl/sunos.em
ld/lexsup.c
ld/plugin.c