Implement --long-plt flag (ARM only).
authorPeter Collingbourne <pcc@google.com>
Fri, 18 Dec 2015 00:50:35 +0000 (16:50 -0800)
committerCary Coutant <ccoutant@gmail.com>
Fri, 18 Dec 2015 00:52:12 +0000 (16:52 -0800)
commitce3e49806d505721e0875e704de0b6fcba7660ed
treee213ef2f53c64f2ded01f1f1f797d9d88f04d10a
parent33e0d1ca50b06a19fc1b813755cce5b6c4042d95
Implement --long-plt flag (ARM only).

gold/
    PR gold/18780
    * arm.cc (Target_arm::do_make_data_plt): Choose PLT generator based
    on value of --long-plt flag.
    (Output_data_plt_arm_standard::do_get_plt_entry_size): Moved to
    Output_data_plt_arm_short.
    (Output_data_plt_arm_standard::do_fill_plt_entry): Likewise.
    (Output_data_plt_arm_standard::plt_entry): Likewise.
    (Output_data_plt_arm_standard::do_fill_first_plt_entry): Fix
    variable reference.
    (Output_data_plt_arm_short): New class.
    (Output_data_plt_arm_short::do_fill_plt_entry): Error out on too large
    PLT offsets instead of asserting.
    (Output_data_plt_arm_long): New class.
    * options.h (General_options): Define --long-plt flag.
gold/ChangeLog
gold/arm.cc
gold/options.h