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

Renlin Li renlin.li@arm.com
Tue Apr 7 14:20:00 GMT 2015


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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 5420.diff
Type: text/x-patch
Size: 2349 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20150407/cb1b938c/attachment.bin>


More information about the Binutils mailing list