URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 27 |
Rev 148 |
Line 2844... |
Line 2844... |
bool have_load_address = *load_address != *dot_value;
|
bool have_load_address = *load_address != *dot_value;
|
|
|
uint64_t address = *dot_value;
|
uint64_t address = *dot_value;
|
address = align_address(address, this->os_->addralign());
|
address = align_address(address, this->os_->addralign());
|
|
|
|
// For a relocatable link, all orphan sections are put at
|
|
// address 0. In general we expect all sections to be at
|
|
// address 0 for a relocatable link, but we permit the linker
|
|
// script to override that for specific output sections.
|
|
if (parameters->options().relocatable())
|
|
{
|
|
address = 0;
|
|
*load_address = 0;
|
|
have_load_address = false;
|
|
}
|
|
|
if ((this->os_->flags() & elfcpp::SHF_ALLOC) != 0)
|
if ((this->os_->flags() & elfcpp::SHF_ALLOC) != 0)
|
{
|
{
|
this->os_->set_address(address);
|
this->os_->set_address(address);
|
if (have_load_address)
|
if (have_load_address)
|
this->os_->set_load_address(align_address(*load_address,
|
this->os_->set_load_address(align_address(*load_address,
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.