[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/27565] ld: Support input section description keyword: REVERSE
From: |
nickc at redhat dot com |
Subject: |
[Bug ld/27565] ld: Support input section description keyword: REVERSE |
Date: |
Mon, 27 Mar 2023 10:15:17 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27565
--- Comment #4 from Nick Clifton <nickc at redhat dot com> ---
(In reply to Fangrui Song from comment #3)
> Hi Nick, thanks for working on this feature! Do you have some examples how
> this keyword can be used?
The patch does include some new test cases which show the keyword being 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`.
Darn! I included support for "REVERSE(SORT_BY_NAME(..." but not for
"REVERSE(SORT_BY_INIT_PRIORITY(..."
I will update the patch...
--
You are receiving this mail because:
You are on the CC list for the bug.