File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -628,19 +628,19 @@ GotSection::GotSection()
628
628
}
629
629
630
630
void GotSection::addConstant (const Relocation &r) { relocations.push_back (r); }
631
- void GotSection::addEntry (Symbol &sym) {
631
+ void GotSection::addEntry (const Symbol &sym) {
632
632
assert (sym.auxIdx == symAux.size () - 1 );
633
633
symAux.back ().gotIdx = numEntries++;
634
634
}
635
635
636
- bool GotSection::addTlsDescEntry (Symbol &sym) {
636
+ bool GotSection::addTlsDescEntry (const Symbol &sym) {
637
637
assert (sym.auxIdx == symAux.size () - 1 );
638
638
symAux.back ().tlsDescIdx = numEntries;
639
639
numEntries += 2 ;
640
640
return true ;
641
641
}
642
642
643
- bool GotSection::addDynTlsEntry (Symbol &sym) {
643
+ bool GotSection::addDynTlsEntry (const Symbol &sym) {
644
644
assert (sym.auxIdx == symAux.size () - 1 );
645
645
symAux.back ().tlsGdIdx = numEntries;
646
646
// Global Dynamic TLS entries take two GOT slots.
Original file line number Diff line number Diff line change @@ -106,9 +106,9 @@ class GotSection final : public SyntheticSection {
106
106
void writeTo (uint8_t *buf) override ;
107
107
108
108
void addConstant (const Relocation &r);
109
- void addEntry (Symbol &sym);
110
- bool addTlsDescEntry (Symbol &sym);
111
- bool addDynTlsEntry (Symbol &sym);
109
+ void addEntry (const Symbol &sym);
110
+ bool addTlsDescEntry (const Symbol &sym);
111
+ bool addDynTlsEntry (const Symbol &sym);
112
112
bool addTlsIndex ();
113
113
uint32_t getTlsDescOffset (const Symbol &sym) const ;
114
114
uint64_t getTlsDescAddr (const Symbol &sym) const ;
You can’t perform that action at this time.
0 commit comments