[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU

2020-01-27 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

 Target||z80-unknown-*
 CC||nickc at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12232|0   |1
is obsolete||

--- Comment #1 from Sergey Belyashov  ---
Created attachment 12236
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12236&action=edit
Complete GBZ80 support, gcsections, DWARF

Add define to enable gc-sections support (but linker warns, that --gc-sections
option is ignored, I do not know why).
Add support for DWARF (enables some tests, one of which (eh5) fails).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

Summary|[Z80][PATCH] Add support|[Z80][PATCH] Add support
   |for GameBoy Z80 CPU |for GameBoy Z80 CPU and
   ||.cfi directives

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-29 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12236|0   |1
is obsolete||

--- Comment #2 from Sergey Belyashov  ---
Created attachment 12237
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12237&action=edit
Add GBZ80 and Z80N support, gcsections, and DWARF

Add support for Z80N (Z80 Next) CPU.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-30 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12237|0   |1
is obsolete||

--- Comment #3 from Sergey Belyashov  ---
Created attachment 12238
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12238&action=edit
Add support GBZ80 and Z80N

Fix new relocation
Add LD test for new relocation

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-31 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

--- Comment #4 from Nick Clifton  ---
(In reply to Sergey Belyashov from comment #3)
> Created attachment 12238 [details]
> Add support GBZ80 and Z80N
> 
> Fix new relocation
> Add LD test for new relocation

I am seeing new linker testsuite failures with this patch applied. :-(

Checking Binutils in: z80-elf ... LD: 49  done
  LD REGRESSION: ld-elf/eh5

Checking Binutils in: z80-coff ... LD: 19  done
  LD REGRESSION: ld-misc/defsym1
  LD REGRESSION: sysroot-prefix common plain -Lpath, quoted
  LD REGRESSION: sysroot-prefix common plain -Lpath, unquoted
  LD REGRESSION: sysroot-prefix common full-path, quoted  
  LD REGRESSION: sysroot-prefix common full-path, unquoted 
  LD REGRESSION: sysroot-prefix common plain =-prefixed with
  LD REGRESSION: sysroot-prefix common plain =-prefixed with
  LD REGRESSION: sysroot-prefix common plain $SYSROOT-prefixed with
  LD REGRESSION: sysroot-prefix common plain $SYSROOT-prefixed with
  LD REGRESSION: sysroot-prefix common plain =-prefixed -Lpath,
  LD REGRESSION: sysroot-prefix common plain =-prefixed -Lpath,
  LD REGRESSION: sysroot-prefix common plain $SYSROOT-prefixed -Lpath,
  LD REGRESSION: sysroot-prefix common plain $SYSROOT-prefixed -Lpath,
  LD REGRESSION: sysroot-prefix common full-path =-prefixed without,
  LD REGRESSION: sysroot-prefix common full-path =-prefixed without,
  LD REGRESSION: sysroot-prefix common full-path $SYSROOT-prefixed without,
  LD REGRESSION: sysroot-prefix common full-path $SYSROOT-prefixed without,
  LD REGRESSION: --entry foo archive  
  LD REGRESSION: --entry foo -u foo archive

Could you investigate these please and fix/waive as appropriate.

Cheers
  Nick

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-01-31 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12238|0   |1
is obsolete||

--- Comment #5 from Sergey Belyashov  ---
Created attachment 12242
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12242&action=edit
Add support GBZ80 and Z80N

Fix COFF linker test failures

I have no idea how to fix ld-elf/eh5 test failure. It is new test which was
enabled when I enable DWARF generation for Z80 target.

There is part of log:
regexp "^0+01(58|70) 0+0014 0+01(5c|74) FDE cie=0+ pc=.*$"
line   "0158 0010  CIE"

regexp "^  DW_CFA_advance_loc: 4 to .*$"
line   "  Version:   1"

regexp "^  DW_CFA_def_cfa: r0(.*) ofs 16$"
line   "  Augmentation:  "zR""

regexp "^  DW_CFA_nop$"
line   "  Code alignment factor: 1"

regexp "^  DW_CFA_nop$"
line   "  Data alignment factor: -1"

regexp "^  DW_CFA_nop$"
line   "  Return address column: 7"

regexp "^0+01(70|88) 0+0014 0+0(01c|148|15c) FDE cie=0+0(02c|030|170) pc=.*$"
line   "  Augmentation data: 0b"

regexp "^  DW_CFA_advance_loc: 4 to .*$"
line   "  DW_CFA_nop"

regexp "^  DW_CFA_def_cfa: r0(.*) ofs 16$"
line   "  DW_CFA_nop"
...
I have no expirience in DWARF. Can somebody helps me?

-- 
You are receiving this mail because:
You are on the CC list for the bug.


[Bug gas/25469] [Z80][PATCH] Add support for GameBoy Z80 CPU and .cfi directives

2020-02-04 Thread sergey.belyashov at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=25469

Sergey Belyashov  changed:

   What|Removed |Added

  Attachment #12242|0   |1
is obsolete||

--- Comment #6 from Sergey Belyashov  ---
Created attachment 12249
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12249&action=edit
Add support GBZ80, Z80N CPUs and DWARF

Fix one test (used label name `a', which is Z80 register name)

eh5 test is still failed (it is new test, which is enabled after enabling of
DWARF). I think, problem is another place. For example, elf/discard tests fails
due to silence of linker (test expects warning). Linker silently succeed due to
discarding of symbol which should go to discard section. I think, same bug
causes failure of PR 10549 (GNU OS ABI on STB_GNU_UNIQUE). I completely do not
understand what happens there.

Moreover, there are two assertion fails in four places of testsuit:
./ld-new: BFD (GNU Binutils) 2.34.50.20200127 assertion fail
../../bfd/elf.c:3550
./ld-new: BFD (GNU Binutils) 2.34.50.20200127 assertion fail
../../bfd/elf.c:3655

This change patch no regressions (at least, detectible by tests).

-- 
You are receiving this mail because:
You are on the CC list for the bug.