diff options
author | Alan Modra <amodra@gmail.com> | 2012-11-06 05:51:18 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2012-11-06 05:51:18 +0000 |
commit | 18498503409294889b1a7e9a5b5d53a959c6c915 (patch) | |
tree | a43289b6e68b571616c8180c09a82cabf3326df3 /gas | |
parent | a38a07e07c75f3d498fb9187a7924d159be6326c (diff) | |
download | gdb-18498503409294889b1a7e9a5b5d53a959c6c915.zip gdb-18498503409294889b1a7e9a5b5d53a959c6c915.tar.gz gdb-18498503409294889b1a7e9a5b5d53a959c6c915.tar.bz2 |
bfd/
* coff-tic4x.c (tic4x_coff0_vec, tic4x_coff0_beh_vec,
tic4x_coff1_vec, tic4x_coff1_beh_vec, tic4x_coff2_vec,
tic4x_coff2_beh_vec): Allow SEC_CODE and SEC_READONLY in
section flags.
gas/
* config/tc-tic4x.c: Remove alignment TODO comments.
(tic4x_do_align): Enable subseg_text_p test.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-tic4x.c | 9 |
2 files changed, 6 insertions, 8 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 9ad252f..ad6fcb6 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,5 +1,10 @@ 2012-11-06 Alan Modra <amodra@gmail.com> + * config/tc-tic4x.c: Remove alignment TODO comments. + (tic4x_do_align): Enable subseg_text_p test. + +2012-11-06 Alan Modra <amodra@gmail.com> + * config/tc-ppc.c (ppc_elf_adjust_symtab): New function, split out.. (ppc_frob_file_before_adjust): ..from here. (md_apply_fix): Set BSF_KEEP on .TOC. if not @tocbase. diff --git a/gas/config/tc-tic4x.c b/gas/config/tc-tic4x.c index 1764b0b..dd21000 100644 --- a/gas/config/tc-tic4x.c +++ b/gas/config/tc-tic4x.c @@ -27,11 +27,6 @@ o .align cannot handle fill-data-width larger than 0xFF/8-bits. It should be possible to define a 32-bits pattern. - o .align fills all section with NOP's when used regardless if has - been used in .text or .data. (However the .align is primarily - intended used in .text sections. If you require something else, - use .align <size>,0x00) - o .align: Implement a 'bu' insn if the number of nop's exceeds 4 within the align frag. if(fragsize>4words) insert bu fragend+1 first. @@ -2966,9 +2961,7 @@ tic4x_do_align (int alignment, { if (fill == NULL) { - /* FIXME: subseg_text_p tests SEC_CODE which isn't in allowed - section flags. See bfd/coff-tic4x.c target vecs. */ - if (1 || subseg_text_p (now_seg)) + if (subseg_text_p (now_seg)) { char nop[4]; |