bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27565] ld: Support input section description keyword: REVERSE


From: i at maskray dot me
Subject: [Bug ld/27565] ld: Support input section description keyword: REVERSE
Date: Fri, 24 Mar 2023 22:01:46 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=27565

--- Comment #3 from Fangrui Song <i at maskray dot me> ---
(In reply to Nick Clifton from comment #2)
> Created attachment 14772 [details]
> Proposed patch
> 
> Hi Fanguri,
> 
>   What do you think of this patch ?  Does it do what you need ?
> 
> Cheers
>   Nick

Hi Nick, thanks for working on this feature! Do you have some examples how this
keyword can be used? If I try
(https://github.com/llvm/llvm-project/blob/main/lld/test/ELF/linkerscript/sort-init.s#L53):


SECTIONS {
  .init_array : {
    *(REVERSE(SORT_BY_INIT_PRIORITY(.init_array.* .ctors.*))
SORT_BY_INIT_PRIORITY(foo*))
    *(REVERSE(.init_array .ctors))
  }
}

ld reports `syntax error`.

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]