Re: [kvm-unit-tests PATCH v2 13/23] arm/arm64: Rename etext to _etext

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 06, 2022 at 09:55:55PM +0100, Nikos Nikoleris wrote:
> From: Andrew Jones <drjones@xxxxxxxxxx>
> 
> Rename etext to the more popular _etext allowing different linker
> scripts to more easily be used.
> 
> Signed-off-by: Andrew Jones <drjones@xxxxxxxxxx>
> Signed-off-by: Nikos Nikoleris <nikos.nikoleris@xxxxxxx>
> ---
>  lib/arm/setup.c | 4 ++--
>  arm/flat.lds    | 2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/lib/arm/setup.c b/lib/arm/setup.c
> index 3c24c75..2d67292 100644
> --- a/lib/arm/setup.c
> +++ b/lib/arm/setup.c
> @@ -34,7 +34,7 @@
>  #define NR_EXTRA_MEM_REGIONS	16
>  #define NR_INITIAL_MEM_REGIONS	(MAX_DT_MEM_REGIONS + NR_EXTRA_MEM_REGIONS)
>  
> -extern unsigned long etext;
> +extern unsigned long _etext;
>  
>  char *initrd;
>  u32 initrd_size;
> @@ -140,7 +140,7 @@ unsigned int mem_region_get_flags(phys_addr_t paddr)
>  
>  static void mem_regions_add_assumed(void)
>  {
> -	phys_addr_t code_end = (phys_addr_t)(unsigned long)&etext;
> +	phys_addr_t code_end = (phys_addr_t)(unsigned long)&_etext;
>  	struct mem_region *r;
>  
>  	r = mem_region_find(code_end - 1);
> diff --git a/arm/flat.lds b/arm/flat.lds
> index 47fcb64..9016ac9 100644
> --- a/arm/flat.lds
> +++ b/arm/flat.lds
> @@ -27,7 +27,7 @@ SECTIONS
>      PROVIDE(_text = .);
>      .text : { *(.init) *(.text) *(.text.*) }
>      . = ALIGN(64K);
> -    PROVIDE(etext = .);
> +    PROVIDE(_etext = .);
>  
>      PROVIDE(reloc_start = .);
>      .rela.dyn : { *(.rela.dyn) }
> -- 
> 2.25.1
> 

Reviewed-by: Ricardo Koller <ricarkol@xxxxxxxxxx>




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux