[PATCH] gold: Add --rosegment-gap option

Cary Coutant ccoutant@google.com
Fri May 10 21:05:00 GMT 2013


> 2013-05-10  Roland McGrath  <mcgrathr@google.com>
>
>         * options.h (General_options): Add --rosegment-gap option.
>         * options.cc (finalize): --rosegment-gap implies --rosegment.
>         * layout.cc (set_segment_offsets): Let user option override
>         target->rosegment_gap().


> +                 uint64_t gap = target->rosegment_gap();
> +                 if (parameters->options().user_set_rosegment_gap())
> +                   gap = parameters->options().rosegment_gap();

No need to call target->rosegment_gap() if user_set_rosegment_gap() is
true. Move that call to an else clause.

OK with that change.

-cary



More information about the Binutils mailing list