[Bug gas/27823] New: [z80-unknown-elf] invalid instruction `ld h, ()` should not assemble
https://sourceware.org/bugzilla/show_bug.cgi?id=27823 Bug ID: 27823 Summary: [z80-unknown-elf] invalid instruction `ld h, ()` should not assemble Product: binutils Version: 2.35 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gas Assignee: unassigned at sourceware dot org Reporter: petemoore at gmx dot net CC: sergey.belyashov at gmail dot com Target Milestone: --- Target: z80-unknown-elf ``` $ # GAS version $ z80-unknown-elf-as --version GNU assembler (GNU Binutils) 2.35.50.20201201 Copyright (C) 2020 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or later. This program has absolutely no warranty. This assembler was configured for a target of `z80-unknown-elf'. $ # Sample assembly file $ cat test.asm ld a, (0x1234) ld h, (0x2345) ld a, h $ # Assembly should fail but instead assembled code omits invalid instruction $ z80-unknown-elf-as -o test.o test.asm && z80-unknown-elf-objdump -d test.o test.o: file format elf32-z80 Disassembly of section .text: <.text>: 0: 3a 34 12ld a,(0x1234) 3: 7c ld a,h $ ``` Other invalid instructions correctly cause assembly to fail, but for some reason, `ld h, (<16 bit address>)` doesn't. -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/27823] [z80-unknown-elf] invalid instruction `ld h, ()` should not assemble
https://sourceware.org/bugzilla/show_bug.cgi?id=27823 Pete Moore changed: What|Removed |Added CC||petemoore at gmx dot net -- You are receiving this mail because: You are on the CC list for the bug.
[Bug gas/3136] Implement .bss for ELF
https://sourceware.org/bugzilla/show_bug.cgi?id=3136 Pete Moore changed: What|Removed |Added CC||petemoore at gmx dot net --- Comment #1 from Pete Moore --- This looks similar to bug 27047 for h8300-elf instead of z80-unknown-elf, so maybe needs a similar patch? However, this bug is 15 years old so maybe the issue is already resolved? -- You are receiving this mail because: You are on the CC list for the bug.
[Bug ld/27825] New: ld: -z unique-symbol behavior when .1 exists
https://sourceware.org/bugzilla/show_bug.cgi?id=27825 Bug ID: 27825 Summary: ld: -z unique-symbol behavior when .1 exists Product: binutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- [Extracted from my reply to [PATCH v4 00/10] Function Granular KASLR in January] mkdir -p ./a echo 'a: a.1: a.2: nop' > ./a/a.s echo 'a: nop' > ./a/b.s echo 'a: nop' > ./a/c.s gcc -c a/a.s -o a/a.o gcc -c a/b.s -o a/b.o gcc -c a/c.s -o a/c.o ld-new a/a.o a/b.o a/c.o -z unique-symbol % readelf -Ws a.out Symbol table '.symtab' contains 13 entries: Num:Value Size TypeBind Vis Ndx Name 0: 0 NOTYPE LOCAL DEFAULT UND 1: 0 FILELOCAL DEFAULT ABS a.o 2: 00401000 0 NOTYPE LOCAL DEFAULT2 a 3: 00401000 0 NOTYPE LOCAL DEFAULT2 a.1 4: 00401000 0 NOTYPE LOCAL DEFAULT2 a.2 5: 0 FILELOCAL DEFAULT ABS b.o 6: 00401001 0 NOTYPE LOCAL DEFAULT2 a.1 7: 0 FILELOCAL DEFAULT ABS c.o 8: 00401002 0 NOTYPE LOCAL DEFAULT2 a.2 9: 0 NOTYPE GLOBAL DEFAULT UND _start 10: 00402000 0 NOTYPE GLOBAL DEFAULT2 __bss_start 11: 00402000 0 NOTYPE GLOBAL DEFAULT2 _edata 12: 00402000 0 NOTYPE GLOBAL DEFAULT2 _end Note that there are multiple a.1 and a.2, which are probably not desired. -- You are receiving this mail because: You are on the CC list for the bug.