Skip to content

Commit

Permalink
Copy .got and .got.plt section (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
marbre authored Nov 6, 2023
1 parent 76f41c3 commit 65939b8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions third_party/nrfx-custom/gcc_startup_nrf5340_application.S
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Copyright (c) 2009-2023 ARM Limited. All rights reserved.
Copyright 2023 Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V.
SPDX-License-Identifier: Apache-2.0
Expand Down Expand Up @@ -379,6 +380,18 @@ Reset_Handler:
ldr r3, =__fast_load_start
bl copy_region

/* Load .got */
ldr r1, =__got_start
ldr r2, =__got_end
ldr r3, =__got_load_start
bl copy_region

/* Load .got.plt */
ldr r1, =__got_plt_start
ldr r2, =__got_plt_end
ldr r3, =__got_plt_load_start
bl copy_region

b copy_etext_done

/* Method that loads data from nvm to ram */
Expand Down

0 comments on commit 65939b8

Please sign in to comment.