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]

Re: [GAS][AARCH64]use subseg_text_p to check whether current segment is thought to hold text.


On 7 April 2015 at 15:20, Renlin Li <renlin.li@arm.com> wrote:
> Hi all,
>
> Direct compare with text_section is not a good way to check whether the
> section is thought to hold text or not. subseg_text_p is used instead to
> cover more cases. The section's flags are checked within subseg_text_p
> function.
>
> Binutils regression test runs Okay. aarch64-none-linux-gnu is cross-built
> and checked without any new issues.
> Okay to commit?
>
> gas/ChangeLog:
>
> 2015-04-07  Renlin Li  <renlin.li@arm.com>
>
>         * config/tc-aarch64.c (mapping_state): Use subseg_text_p.
>         (s_aarch64_inst): Likewise.
>         (md_assemble): Likewise.
>
>

+  if (TRANSITION (MAP_UNDEFINED, MAP_DATA) && !subseg_text_p (now_seg))
+    /* Emit MAP_DATA within executable section in order. Otherwise, it will be

Double space after period, likewise the following three comments.  Otherwise OK
/Marcus


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]