[Bug gas/22492] New: Incorrect note section alignment

2017-11-25 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22492

Bug ID: 22492
   Summary: Incorrect note section alignment
   Product: binutils
   Version: 2.30 (HEAD)
Status: NEW
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: hjl.tools at gmail dot com
  Target Milestone: ---

[hjl@gnu-tools-1 gas]$ cat /tmp/x.s
 .version "Version 1.0"
[hjl@gnu-tools-1 gas]$ gcc -c /tmp/x.s -m32
[hjl@gnu-tools-1 gas]$ readelf -SW x.o
There are 8 section headers, starting at offset 0xd0:

Section Headers:
  [Nr] Name  TypeAddr OffSize   ES Flg Lk Inf
Al
  [ 0]   NULL 00 00 00  0   0 
0
  [ 1] .text PROGBITS 34 00 00  AX  0   0 
1
  [ 2] .data PROGBITS 34 00 00  WA  0   0 
1
  [ 3] .bss  NOBITS   34 00 00  WA  0   0 
1
  [ 4] .note NOTE 34 18 00  0   0 
1
  [ 5] .symtab   SYMTAB   4c 50 10  6   5 
4
  [ 6] .strtab   STRTAB   9c 01 00  0   0 
1
  [ 7] .shstrtab STRTAB   9d 32 00  0   0 
1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  p (processor specific)
[hjl@gnu-tools-1 gas]$ 

obj_elf_version pads note section to 4 byte alignment:

frag_align (2, 0, 0);

But it doesn't set section alignment to 4 bytes.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug gas/22493] New: push {sp} fails on mcpu=cortex-a7

2017-11-25 Thread bugzi...@fritzler-avr.de
https://sourceware.org/bugzilla/show_bug.cgi?id=22493

Bug ID: 22493
   Summary: push {sp} fails on mcpu=cortex-a7
   Product: binutils
   Version: 2.29
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: gas
  Assignee: unassigned at sourceware dot org
  Reporter: bugzi...@fritzler-avr.de
  Target Milestone: ---
Target: cortex-a7

The arm-none-eabi-as translates "push {sp}" wrong.
Instead of "stmfd sp!, {sp}" im getting "str sp, [sp, #-4]!".
This str is UNPREDICTABLE says ARMv7-A Refmanual (the cortex a7 throws an
undefined).
Because it uses writeback and Rn == Rt.
Im referencing to this doc:
http://liris.cnrs.fr/~mmrissa/lib/exe/fetch.php?media=armv7-a-r-manual.pdf (ARM
DDI 0406C.b (ID072512))
Chapter A8.8.205, page 676.

And im not getting a warning!
If im typing "str sp, [sp, #-4]!" manually I get a warning.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug binutils/22494] New: pocong

2017-11-25 Thread Atmaganteng69 at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=22494

Bug ID: 22494
   Summary: pocong
   Product: binutils
   Version: 2.14
Status: UNCONFIRMED
  Severity: normal
  Priority: P2
 Component: binutils
  Assignee: unassigned at sourceware dot org
  Reporter: Atmaganteng69 at gmail dot com
  Target Milestone: ---

Created attachment 10634
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10634&action=edit
fxbtd

Gcvvcc

-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils