[PATCH v2 1/3] RISC-V: Enable elf attributes when default configure option isn't set.

Sebastian Huber sebastian.huber@embedded-brains.de
Fri Feb 25 13:57:53 GMT 2022


Hello,

On 09/07/2021 09:28, Nelson Chu wrote:
> Since gcc commit, 3c70b3ca1ef58f302bf8c16d9e7c7bb8626408bf, we now enable
> elf attributes for all riscv targets by default in gcc.  Therefore, I
> think binutils should have the same behavior, in case users are writing
> assembly files.

this is probably not directly related to this patch, however, the 
riscv.attributes are not covered by the default linker command file:

riscv-rtems6-ld --verbose | grep attrib
   .gnu.build.attributes : { *(.gnu.build.attributes 
.gnu.build.attributes.*) }
   .gnu.attributes 0 : { KEEP (*(.gnu.attributes)) }

Compared to for example:

arm-rtems6-ld --verbose | grep attrib
   .gnu.build.attributes : { *(.gnu.build.attributes 
.gnu.build.attributes.*) }
   .ARM.attributes 0 : { KEEP (*(.ARM.attributes)) KEEP 
(*(.gnu.attributes)) }

-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the Binutils mailing list