[PATCH v8 02/19] gas: move code for object attribute parsing into obj-elf-attr.c

Jan Beulich jbeulich@suse.com
Thu Jul 31 13:14:24 GMT 2025


On 15.07.2025 13:39, Matthieu Longo wrote:
> --- a/gas/configure.ac
> +++ b/gas/configure.ac
> @@ -454,6 +454,19 @@ changequote([,])dnl
>  	;;
>      esac
>  
> +    # Does the target support Object Attributes ?
> +    case ${cpu_type} in
> +      arc* | arm* | csky | m68k | mips* | msp430 | powerpc* \
> +      | riscv* | s390* | sparc* | tic6x)
> +	for f in config/obj-elf-attr.o; do
> +	  case " $extra_objects " in
> +	    *" $f "*) ;;
> +	    *) extra_objects="$extra_objects $f" ;;
> +	  esac
> +	done
> +	;;
> +    esac
> +
>      # Any other special object files needed ?
>      case ${cpu_type} in

Looking at patch 04 I came to wonder: How does this limit addition of the
extra object file to ELF targets?

Jan


More information about the Binutils mailing list