diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-08-26 12:16:05 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-08-26 12:16:05 -0600 |
commit | b6ed8d1bed845fdba8ba207776dc1f7b83de57fd (patch) | |
tree | 7a50c9cc92745c0f80b8557354a836020275328f /nuttx/binfmt/elf.c | |
parent | 690fb7b9fb8bc38f97c38cd5a36140bd8efe7bd7 (diff) | |
download | px4-nuttx-b6ed8d1bed845fdba8ba207776dc1f7b83de57fd.tar.gz px4-nuttx-b6ed8d1bed845fdba8ba207776dc1f7b83de57fd.tar.bz2 px4-nuttx-b6ed8d1bed845fdba8ba207776dc1f7b83de57fd.zip |
Rename up_addrenv_assign() to up_addrenv_clone() and generalize its arguments so that can be used for other purposes
Diffstat (limited to 'nuttx/binfmt/elf.c')
-rw-r--r-- | nuttx/binfmt/elf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/binfmt/elf.c b/nuttx/binfmt/elf.c index 98924a6a8..2cb18fe91 100644 --- a/nuttx/binfmt/elf.c +++ b/nuttx/binfmt/elf.c @@ -1,7 +1,7 @@ /**************************************************************************** * binfmt/elf.c * - * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Copyright (C) 2012, 2014 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <gnutt@nuttx.org> * * Redistribution and use in source and binary forms, with or without @@ -294,11 +294,11 @@ static int elf_loadbinary(FAR struct binary_s *binp) #endif #ifdef CONFIG_ARCH_ADDRENV - /* Save the address environment. This will be needed when the module is - * executed for the up_addrenv_assign() call. + /* Save the address environment in the binfmt structure. This will be + * needed when the module is executed. */ - binp->addrenv = loadinfo.addrenv; + up_addrenv_clone(&loadinfo.addrenv, &binp->addrenv); #endif elf_dumpentrypt(binp, &loadinfo); |