mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* layout.cc (Layout::finish_dynamic_section): Don't create
DT_FLAGS entry if not needed.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2011-06-18 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* layout.cc (Layout::finish_dynamic_section): Don't create
|
||||||
|
DT_FLAGS entry if not needed.
|
||||||
|
|
||||||
2011-06-18 Ian Lance Taylor <iant@google.com>
|
2011-06-18 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
PR gold/12745
|
PR gold/12745
|
||||||
|
@ -4162,7 +4162,8 @@ Layout::finish_dynamic_section(const Input_objects* input_objects,
|
|||||||
}
|
}
|
||||||
if (parameters->options().now())
|
if (parameters->options().now())
|
||||||
flags |= elfcpp::DF_BIND_NOW;
|
flags |= elfcpp::DF_BIND_NOW;
|
||||||
odyn->add_constant(elfcpp::DT_FLAGS, flags);
|
if (flags != 0)
|
||||||
|
odyn->add_constant(elfcpp::DT_FLAGS, flags);
|
||||||
|
|
||||||
flags = 0;
|
flags = 0;
|
||||||
if (parameters->options().initfirst())
|
if (parameters->options().initfirst())
|
||||||
@ -4187,7 +4188,7 @@ Layout::finish_dynamic_section(const Input_objects* input_objects,
|
|||||||
flags |= elfcpp::DF_1_ORIGIN;
|
flags |= elfcpp::DF_1_ORIGIN;
|
||||||
if (parameters->options().now())
|
if (parameters->options().now())
|
||||||
flags |= elfcpp::DF_1_NOW;
|
flags |= elfcpp::DF_1_NOW;
|
||||||
if (flags)
|
if (flags != 0)
|
||||||
odyn->add_constant(elfcpp::DT_FLAGS_1, flags);
|
odyn->add_constant(elfcpp::DT_FLAGS_1, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user