mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-14 23:33:00 +00:00
99e2fbcb69
Rename the sections used to implement linker lists so they begin with '__u_boot_list' rather than '.u_boot_list'. The double underscore at the start is still distinct from the single underscore used by the symbol names. Having a '.' in the section names conflicts with clang's ASAN instrumentation which tries to add redzones between the linker list elements, causing expected accesses to fail. However, clang doesn't try to add redzones to user sections, which are names with all alphanumeric and underscore characters. Signed-off-by: Andrew Scull <ascull@google.com> Reviewed-by: Simon Glass <sjg@chromium.org>
56 lines
878 B
Text
56 lines
878 B
Text
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (c) 2011-2012 The Chromium OS Authors.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
SECTIONS
|
|
{
|
|
|
|
. = ALIGN(32);
|
|
__u_boot_list : {
|
|
KEEP(*(SORT(__u_boot_list*)));
|
|
}
|
|
|
|
_u_boot_sandbox_getopt : {
|
|
*(_u_boot_sandbox_getopt_start)
|
|
*(_u_boot_sandbox_getopt)
|
|
*(_u_boot_sandbox_getopt_end)
|
|
}
|
|
|
|
efi_runtime_start : {
|
|
*(___efi_runtime_start)
|
|
}
|
|
|
|
efi_runtime : {
|
|
*(efi_runtime_text)
|
|
*(efi_runtime_data)
|
|
}
|
|
|
|
efi_runtime_stop : {
|
|
*(___efi_runtime_stop)
|
|
}
|
|
|
|
efi_runtime_rel_start : {
|
|
*(___efi_runtime_rel_start)
|
|
}
|
|
|
|
efi_runtime_rel : {
|
|
*(.relefi_runtime_text)
|
|
*(.relefi_runtime_data)
|
|
}
|
|
|
|
efi_runtime_rel_stop : {
|
|
*(___efi_runtime_rel_stop)
|
|
}
|
|
|
|
.dynsym :
|
|
{
|
|
__dyn_sym_start = .;
|
|
*(.dynsym)
|
|
__dyn_sym_end = .;
|
|
}
|
|
}
|
|
|
|
INSERT BEFORE .data;
|