diff options
Diffstat (limited to 'core/relocate.c')
-rw-r--r-- | core/relocate.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/core/relocate.c b/core/relocate.c index 7255803..8e1f1b2 100644 --- a/core/relocate.c +++ b/core/relocate.c @@ -1,27 +1,17 @@ -/* Copyright 2013-2014 IBM Corp. +// SPDX-License-Identifier: Apache-2.0 +/* + * Relocate ourselves * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 + * WARNING: This code is used to self-relocate, it cannot have any + * global reference nor TOC reference. It's also called before BSS + * is cleared. * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Copyright 2013-2015 IBM Corp. */ #include <stdbool.h> #include <elf.h> -/* WARNING: This code is used to self-relocate, it cannot have any - * global reference nor TOC reference. It's also called before BSS - * is cleared. - */ - /* Called from head.S, thus no header. */ int relocate(uint64_t offset, struct elf64_dyn *dyn, struct elf64_rela *rela); |