12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815 |
- 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (x86_64_mov_to_lea11): Replace
- x86_64_mov_to_lea1.o with x86_64_mov_to_lea2.o.
- (x86_64_mov_to_lea12): Replace x86_64_mov_to_lea2.o with
- x86_64_mov_to_lea1.o.
- * testsuite/Makefile.in: Regenerated.
- 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/19119
- * options.h (General_options): Remove "obsolete" from -m.
- * parameters.cc (set_parameters_target): Check if input target
- is compatible with output emulation set by "-m emulation".
- 2015-10-13 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/19118
- * i386.cc (Target_iamcu): New class.
- (Target_selector_iamcu): Likewise.
- (Target_iamcu::iamcu_info): New variable.
- (target_selector_iamcu): Likewise.
- 2015-10-07 Andreas Schwab <schwab@suse.de>
- * aarch64.cc (aarch64_info): Set abi_pagesize to 64K.
- 2015-10-06 Cary Coutant <ccoutant@gmail.com>
- PR gold/18855
- * sparc.cc (Sparc_relocate_functions::gdop_hix22): Remove addend
- parameter.
- (Sparc_relocate_functions::gdop_lox10): Likewise.
- (Target_sparc::Relocate::relocate): Use addend when computing
- symbol value for R_SPARC_GOTDATA_OP*.
- 2015-09-07 Cary Coutant <ccoutant@gmail.com>
- PR gold/18930
- PR gold/18886
- * resolve.cc (Symbol::override_base): Don't convert IFUNC symbols here.
- * symtab.cc (Symbol_table::add_from_dynobj): Convert them here instead.
- 2015-09-02 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18886
- * resolve.cc (Symbol::override_base): Turn IFUNC symbols from
- shared libraries into normal FUNC symbols.
- * symtab.cc (Symbol_table::sized_write_symbol): Assert IFUNC
- symbols aren't from shared libraries.
- 2015-09-02 Alan Modra <amodra@gmail.com>
- PR 18878
- * powerpc.cc (Target_powerpc): Add savres_section_ and accessor.
- (Target_powerpc::Branch_info::make_stub): Determine whether long
- branch stub is for save/restore function.
- (Branch_stub_ent): Add save_res_, and extra parm to constructor.
- (Stub_table): Add need_save_res_.
- (Stub_table:clear_stubs): Clear need_save_res_.
- (Stub_table:set_address_and_size): Add save/restore section size.
- (Stub_table::add_long_branch_entry): Add save_res param. Set
- need_save_res_, but don't add space for save/restore stubs.
- (Stub_table::find_long_branch_entry): Return offset to local copy
- of save/restore func.
- (Stub_table::do_write): Don't output save/restore stubs. Instead
- copy the save/restore functions.
- (Output_data_save_res:contents): New accessor.
- (Target_powerpc::define_save_restore_funcs): Set savres_section_.
- 2015-08-25 Cary Coutant <ccoutant@gmail.com>
- PR gold/18847
- * script-sections.cc (Memory_region::set_address): New method.
- (Script_sections::find_memory_region): Add explicit_only parameter.
- (Output_section_definition::set_section_addresses): Handle case where
- script specifies both address and vma region.
- * script-sections.h (Script_sections::find_memory_region): Add
- explicit_only parameter.
- 2015-08-25 Cary Coutant <ccoutant@gmail.com>
- PR gold/18859
- * object.cc (Input_objects::add_object): Store objects in a map,
- indexed by soname; update as-needed flag when necessary.
- * object.h (Object::clear_as_needed): New method.
- (Input_objects::so_names_): Change from set to map.
- 2015-08-25 Cary Coutant <ccoutant@gmail.com>
- PR gold/14746
- * expression.cc (Expression::Expression_eval_info): Add
- is_valid_pointer field.
- (Expression::eval_maybe_dot): Add is_valid_pointer parameter.
- Adjust all callers.
- (Addr_expression::value_from_output_section): Check whether address
- is valid.
- * script.cc (Symbol_assignment::set_if_absolute): Defer assignment
- if evaluation failed due to address that is not yet valid.
- * script.h: (Expression::eval_maybe_dot): Add is_valid_pointer
- parameter.
- 2015-08-25 Cary Coutant <ccoutant@gmail.com>
- PR gold/18866
- PR gold/18703
- * symtab.cc (Symbol_table): Reorder conditions to avoid internal error.
- 2015-08-20 Alan Modra <amodra@gmail.com>
- PR gold/18846
- * target-reloc.h (relocate_relocs <RELOC_ADJUST_FOR_SECTION_RELA>):
- Subtract os->address() from addend.
- * powerpc.cc (relocate_relocs): Likewise.
- 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
- * mips.cc (plt0_entry_o32, plt0_entry_n32, plt0_entry_n64,
- lazy_stub_normal_1, lazy_stub_normal_1_n64,
- lazy_stub_normal_2, lazy_stub_normal_2_n64, lazy_stub_big,
- lazy_stub_big_n64, lazy_stub_micromips32_normal_1_n64,
- lazy_stub_micromips32_normal_2_n64, lazy_stub_micromips32_big,
- lazy_stub_micromips32_big_n64): Update to use 'or' for move instead
- of 'addu/daddu'.
- 2015-07-27 H.J. Lu <hongjiu.lu@intel.com>
- * configure: Regenerated.
- 2015-07-26 Doug Kwan <dougkwan@google.com>
- * testsuite/arm_unaligned_reloc.{s,sh}: Make test less sensitive to
- disassembler output format.
- 2015-07-23 Ian Coolidge <icoolidge@google.com>
- Plumb --pic-veneer option for gold.
- * arm.cc (Reloc_stub::stub_type_for_reloc): Plumb to stub
- generation.
- * options.h (General_options): Add --pic-veneer option.
- 2015-07-22 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18663
- * testsuite/Makefile.am (script_test_1_SOURCES): Set to
- script_test_1a.cc script_test_1b.cc.
- (script_test_11_r.o): Replace script_test_11.o with
- script_test_11a.o script_test_11b.o.
- (script_test_11.o): Removed.
- (script_test_11a.o): New.
- (script_test_11b.o): Likewise.
- * testsuite/Makefile.in: Regenerated.
- * testsuite/script_test_1.h: New file.
- * testsuite/script_test_1b.cc: Likewise.
- * testsuite/script_test_11.h: Likewise.
- * testsuite/script_test_11b.c: Likewise.
- * testsuite/script_test_1.cc: Renamed to ...
- * testsuite/script_test_1a.cc: This.
- Include "script_test_1.h".
- (main): Call check_int and check_ptr.
- * testsuite/script_test_11.c: Renamed to ...
- * testsuite/script_test_11a.c: This.
- Include "script_test_11.h".
- (main): Call ptr_equal.
- 2015-07-22 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18628
- * testsuite/ifuncdep2.c (global): Change protected to hidden.
- * testsuite/ifuncmod1.c (global): Likewise.
- * testsuite/ifuncmod5.c (global): Likewise.
- 2015-07-22 Alan Modra <amodra@gmail.com>
- * aarch64.cc (try_fix_erratum_843419_optimized): Warning fix.
- 2015-07-21 Cary Coutant <ccoutant@gmail.com>
- PR gold/18548
- * symtab.cc (Symbol_table::do_define_in_output_data): Check for
- forced local symbol even when oldsym != NULL.
- (Symbol_table::do_define_in_output_segment): Likewise.
- (Symbol_table::do_define_as_constant): Likewise.
- 2015-07-21 Cary Coutant <ccoutant@gmail.com>
- PR gold/18698
- * archive.cc (Library_base::should_include_member): Don't use entry
- point for relocatable links, or if target is not yet valid.
- * parameters.cc (Parameters::entry): Check target_valid().
- 2015-07-20 Han Shen <shenhan@google.com>
- Optimize erratum 843419 fix.
- * aarch64.cc (AArch64_insn_utilities::is_adr): New method.
- (AArch64_insn_utilities::aarch64_adr_encode_imm): New method.
- (AArch64_insn_utilities::aarch64_adrp_decode_imm): New method.
- (E843419_stub): New sub-class of Erratum_stub.
- (AArch64_relobj::try_fix_erratum_843419_optimized): New method.
- (AArch64_relobj::section_needs_reloc_stub_scanning): Try optimized fix.
- (AArch64_relobj::create_erratum_stub): Add 1 argument.
- (Target_aarch64::scan_erratum_843419_span): Pass in adrp insn offset.
- 2015-07-20 Han Shen <shenhan@google.com>
- Fix arm elf header flags wrt hardfp bit.
- * arm.cc (Target_arm::do_adjust_elf_header): Set flags into view.
- 2015-07-20 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18689
- * layout.cc (Layout::layout): Clear the SHF_COMPRESSED flag bit
- from input group section for relocatable link.
- * testsuite/Makefile.am (check_SCRIPTS): Add pr18689.sh.
- (check_DATA): Add pr18689.stdout.
- (MOSTLYCLEANFILES): Add pr18689a.o pr18689b.o.
- (pr18689.stdout): New rule.
- (pr18689a.o): Likewise.
- (pr18689b.o): Likewise.
- (pr18689.o): Likewise.
- * testsuite/pr18689.c: New file.
- * testsuite/pr18689.sh: Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2015-07-20 Yiran Wang <yiran@google.com>
- Cary Coutant <ccoutant@gmail.com>
- PR gold/15574
- * resolve.cc (Symbol_table): Remove warning about references
- from shared objects to hidden symbols.
- * testsuite/Makefile.am (hidden_test): Add hidden_test.syms.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/hidden_test.sh: Check dynamic symbol table; update
- expected error messages.
- 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
- * compressed_output.cc (Output_compressed_section::set_final_data_size):
- Make --compress-debug-sections=zlib the same as
- --compress-debug-sections=zlib-gabi.
- * testsuite/Makefile.am (flagstest_compress_debug_sections.check):
- Expect ".debug_.*" with the SHF_COMPRESSED bit, instead of
- ".zdebug_".
- * testsuite/Makefile.in: Regenerated.
- 2015-07-12 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18322
- * compressed_output.cc (zlib_compress): Add argument for
- compression header size. Set header size to compression header
- size if it isn't 0. Don't write out the zlib header here.
- (Output_compressed_section::set_final_data_size): Support
- zlib-gnu and zlib-gabi compressions. Pass compression header
- size to zlib_compress and write out compression header. Set
- the SHF_COMPRESSED bit for zlib-gabi compression. Otherwise
- clear the SHF_COMPRESSED bit
- * options.h (compress_debug_sections): Add zlib-gnu and
- zlib-gabi.
- * output.h (Output_section::set_flags): New.
- * testsuite/Makefile.am (check_PROGRAMS): Add
- flagstest_compress_debug_sections_none,
- flagstest_compress_debug_sections_gnu and
- flagstest_compress_debug_sections_gabi.
- (check_DATA): Add flagstest_compress_debug_sections_none.stdout.
- flagstest_compress_debug_sections.stdout,
- flagstest_compress_debug_sections.cmp,
- flagstest_compress_debug_sections.check,
- flagstest_compress_debug_sections_gnu.stdout,
- flagstest_compress_debug_sections_gnu.cmp,
- flagstest_compress_debug_sections_gnu.check,
- flagstest_compress_debug_sections_gabi.stdout,
- flagstest_compress_debug_sections_gabi.cmp and
- flagstest_compress_debug_sections_gabi.check.
- (flagstest_compress_debug_sections_none): New.
- (flagstest_compress_debug_sections_none.stdout): Likewise.
- (flagstest_compress_debug_sections.stdout): Likewise.
- (flagstest_compress_debug_sections.check): Likewise.
- (flagstest_compress_debug_sections.cmp): Likewise.
- (flagstest_compress_debug_sections_gnu): Likewise.
- (flagstest_compress_debug_sections_gnu.stdout): Likewise.
- (flagstest_compress_debug_sections_gnu.check): Likewise.
- (flagstest_compress_debug_sections_gnu.cmp): Likewise.
- (flagstest_compress_debug_sections_gabi): Likewise.
- (flagstest_compress_debug_sections_gabi.stdout): Likewise.
- (flagstest_compress_debug_sections_gnu.check): Likewise.
- (flagstest_compress_debug_sections_gnu.cmp): Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2015-07-12 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/18321
- * compressed_output.h (decompress_input_section): Add arguments
- for ELF class, big endian and sh_flags.
- * compressed_output.cc (decompress_input_section): Likewise.
- Support the SHF_COMPRESSED section.
- * dynobj.h (Dynobj): Add elfsize and is_big_endian member
- functions.
- * plugin.h (Pluginobj): Likewise.
- * layout.cc (Layout::get_output_section_flags): Also clear the
- SHF_COMPRESSED bit.
- * object.h (Compressed_section_info): Add flag to store sh_flags.
- (Object): Add pure virtual elfsize and is_big_endian member
- functions.
- * object.cc (need_decompressed_section): Don't skip the ".zdebug"
- prefix here.
- (build_compressed_section_map): Check SHF_COMPRESSED for
- uncompressed size. Store sh_flags in Compressed_section_info.
- Pass size, big_endian and sh_flags to decompress_input_section.
- Skip the ".debug"/".zdebug" prefix when passing section name to
- need_decompressed_section.
- (Sized_relobj_file<size, big_endian>::do_find_special_section):
- Don't check ".zdebug_*" sections.
- (Object::decompressed_section_contents): Pass ELF class, big
- endian and sh_flags to decompress_input_section.
- * reloc.cc (Sized_relobj_file<size, big_endian>::write_sections):
- Likewise.
- * testsuite/Makefile.am (check_DATA): Add
- debug_msg_cdebug_gabi.err and gdb_index_test_2_gabi.stdout.
- (MOSTLYCLEANFILES): Add debug_msg_cdebug_gabi.err and
- gdb_index_test_2_gabi.stdout.
- (debug_msg_cdebug_gabi.o): New.
- (odr_violation1_cdebug_gabi.o): Likewise.
- (odr_violation2_cdebug_gabi.o): Likewise.
- (debug_msg_cdebug_gabi.err): Likewise.
- (check_SCRIPTS): Add gdb_index_test_2_gabi.sh.
- (gdb_index_test_cdebug_gabi.o): Likewise.
- (gdb_index_test_2_gabi): Likewise.
- (gdb_index_test_2_gabi.stdout): Likewise.
- * testsuite/gdb_index_test_2_gabi.sh: New file.
- * testsuite/Makefile.in: Regenerated.
- 2015-07-09 Han Shen <shenhan@google.com>
- Use "gold_info" instead of "gold_warning" for erratum fix.
- * aarch64.cc (Target_aarch64::scan_erratum_843419_span): Use
- 'gold_info'.
- (Target_aarch64::scan_erratum_835769_span): USe 'gold_info'.
- 2015-07-09 Han Shen <shenhan@google.com>
- Drop missing symbol warning for arm/aarch64.
- * aarch64.cc (AArch64_relobj::scan_errata): Drop missing symbol warning.
- * arm.cc (Arm_relobj::scan_section_for_cortex_a8_erratum): Drop missing
- symbol warning.
- 2015-07-07 Han Shen <shenhan@google.com>
- Make gold aarch64 accept long form of mapping symbols.
- * aarch64.cc (AArch64_relobj::do_count_local_symbols): Make legal
- of mapping symbols.
- 2015-06-29 Doug Kwan <dougkwan@google.com>
- * testsuite/arm_bl_out_of_range.s: Align stub table so that it appears
- at address expected by test.
- * testsuite/arm_cortex_a8_b.s: Ditto.
- * testsuite/arm_cortex_a8_b_cond.s: Ditto.
- * testsuite/arm_cortex_a8_bl.s: Ditto.
- * testsuite/arm_cortex_a8_blx.s: Ditto.
- * testsuite/arm_cortex_a8_local.s: Ditto.
- * testsuite/arm_fix_v4bx.s: Ditto.
- * testsuite/arm_unaligned_reloc.s: Ditto.
- * testsuite/thumb_bl_out_of_range.s: Ditto.
- * testsuite/thumb_bl_out_of_range_local.s: Ditto.
- * testsuite/thumb_blx_out_of_range.s: Ditto.
- 2015-06-29 Han Shen <shenhan@google.com>
- Patch for erratum 843419 internal error.
- * aarch64.cc (Erratum_stub::Insn_utilities): New typedef.
- (Erratum_stub::update_erratum_insn): New method.
- (Stub_table::relocate_stubs): Modified to place relocated insn.
- (AArch64_relobj::fix_errata): Modified gold_assert.
- 2015-06-12 Han Shen <shenhan@google.com>
- Fix erratum 835769.
- * aarch64.cc (AArch64_insn_utilities::BYTES_PER_INSN): Move
- defintion outside class definition.
- (AArch64_insn_utilities::AARCH64_ZR): New static constant.
- (AArch64_insn_utilities::aarch64_op31): New member.
- (AArch64_insn_utilities::aarch64_ra): New member.
- (AArch64_insn_utilities::aarch64_mac): New member.
- (AArch64_insn_utilities::aarch64_mlxl): New member.
- (ST_E_835769): New global enum member.
- (Stub_table::relocate_stubs): Add 835769 handler.
- (Stub_template_repertoire::Stub_template_repertoire): Install new
- stub type.
- (AArch64_relobj::scan_errata): This func is renamed from
- scan_erratum_843419.
- (AArch64_relobj::do_count_local_symbols): Add 835769 handler.
- (AArch64_relobj::do_relocate_sections): Add 835769 handler.
- (AArch64_relobj::scan_sections_for_stubs): Add 835769 handler.
- (Target_aarch64::scan_erratum_835769_span): New method.
- (Target_aarch64::create_erratum_stub): New method.
- (Target_aarch64::is_erratum_835769_sequence): New method.
- (Target_aarch64::scan_erratum_843419_sequence): Move part of the
- code into create_erratum_stub.
- * options.h (fix_cortex_a53_835769): New option.
- 2015-06-11 Cary Coutant <ccoutant@gmail.com>
- * aarch64.cc (Erratum_stub::STUB_ADDR_ALIGN): Move initialization
- outside class body.
- (Reloc_stub::STUB_ADDR_ALIGN): Likewise.
- 2015-06-11 Cary Coutant <ccoutant@gmail.com>
- PR gold/17731
- * layout.cc (corresponding_uncompressed_section_name): New function.
- (Layout::choose_output_section): Call it.
- * layout.h (corresponding_uncompressed_section_name): New function.
- * script-sections.cc (Input_section_info::set_section_name): Check
- for compressed debug section (.zdebug style).
- 2015-06-11 Jing Yu <jingyu@google.com>
- * testsuite/Makefile.am: Add -O0 for script_test_12 test.
- * testsuite/Makefile.in: Regenerate.
- 2015-06-11 Davide Italiano <dccitaliano@gmail.com>
- * gold.h (is_cident): Correct typo.
- 2015-06-10 Han Shen <shenhan@google.com>
- Patch for erratum-843419 (2 of 2 - fix erratum occurrences).
- Now fixing for 843419 is fully functional.
- The first part of the erratum fix CL is here -
- https://sourceware.org/ml/binutils/2015-04/msg00229.html
- * aarch64.cc(global enum): New constants representing stub types.
- (Stub_template): New POD struct.
- (Stub_template_repertoire): New class.
- (Stub_base): New class.
- (Erratum_stub): New class.
- (Reloc_stub): Refactored to be a subclass of Stub_base.
- (Reloc_stub::Stub_type): Removed.
- (Reloc_stub::offset): Moved to Stub_base.
- (Reloc_stub::set_offset): Moved to Stub_base.
- (Reloc_stub::destination_address): Moved to Stub_base.
- (Reloc_stub::set_destination_address): Moved to Stub_base.
- (Reloc_stub::reset_destination_address): Moved to Stub_base.
- (Reloc_stub::stub_type): Renamed and moved to Stub_base.
- (Reloc_stub::stub_size): Renamed and moved to Stub_base.
- (Reloc_stub::stub_insns): Renamed and moved to Stub_base.
- (Reloc_stub::write): Moved to Stub_base.
- (Reloc_stub::invalid_offset): Moved to Stub_base.
- (Reloc_stub::invalid_address): Moved to Stub_base.
- (Reloc_stub::stub_type_): Renamed and moved to Stub_base.
- (Reloc_stub::stub_insns_): Moved to Stub_base.
- (Reloc_stub::offset_): Moved to Stub_base.
- (Reloc_stub::destination_address_): Moved to Stub_base.
- (Stub_table::The_aarch64_relobj): New typedef.
- (Stub_table::The_erratum_stub): New typedef.
- (Stub_table::The_erratum_stub_less): New typedef.
- (Stub_table::The_erratum_stub_set): New typedef.
- (Stub_table::The_erratum_stub_set_iter): New typedef.
- (Stub_table::empty): Added emptiness testing for erratum stubs.
- (Stub_table::add_erratum_stub): New method to add an erratum stub.
- (Stub_table::find_erratum_stub): New method.
- (Stub_table::find_erratum_stubs_for_input_section): New method.
- (Stub_table::erratum_stub_address): New method.
- (Stub_table::update_date_size_changed_p): Modified to handle erratum stubs.
- (Stub_table::do_addralign): Modified to handle erratum stubs.
- (Stub_table::erratum_stubs_): New member.
- (Stub_table::erratum_stub_size_): New member.
- (Stub_table::relocate_stubs): Modified to handle erratum stubs.
- (Stub_table::do_write): Modified to handle erratum stubs.
- (AArch64_relobj::The_erratum_stub): New typedef.
- (AArch64_relobj::Erratum_stub_set_iter): New typedef.
- (AArch64_relobj::fix_errata): New method.
- (Target_aarch64::The_reloc_stub_type): Removed.
- (Target_aarch64::The_erratum_stub): New typede.
- (AArch64_relocate_functions::construct_b): New method.
- 2015-06-08 Nick Clifton <nickc@redhat.com>
- * po/fr.po: New French Translation.
- 2015-06-07 Cary Coutant <ccoutant@gmail.com>
- PR gold/18288
- * resolve.cc (symbol_to_bits): Remove type parameter; adjust all
- callers. Don't use STT_COMMON to check for common symbols.
- (Symbol_table::resolve): Warn if relocatable object has STT_COMMON
- symbol that's not in a common section.
- * symtab.h (Symbol::is_common): Don't use STT_COMMON to check for
- common symbols.
- 2015-06-04 Cary Coutant <ccoutant@gmail.com>
- PR gold/18200
- * Makefile.am (diststuff): Add target.
- * Makefile.in: Regenerate.
- 2015-06-04 Cary Coutant <ccoutant@gmail.com>
- PR gold/17498
- * object.cc (Sized_relobj_file::do_count_local_symbols): Discard
- temporary locals in merge sections.
- * options.cc (General_options::parse_discard_all): New method.
- (General_options::parse_discard_locals): New method.
- (General_options::parse_discard_none): New method.
- (General_options::General_options): Initialize discard_locals_.
- * options.h (--discard-all): Convert to special option.
- (--discard-locals): Likewise.
- (--discard-none): New option.
- (General_options::discard_all): New method.
- (General_options::discard_locals): New method.
- (General_options::discard_sec_merge): New method.
- (General_options::Discard_locals): New enum.
- (General_options::discard_locals_): New data member.
- 2015-06-03 Cary Coutant <cary@google.com>
- * script-sections.cc (Script_sections::Script_sections): Initialize
- segments_created_.
- (Script_sections::create_note_and_tls_segments): Set flag when
- segments are created.
- (Script_sections::expected_segment_count): Count PT_INTERP.
- (Script_sections::attach_sections_using_phdrs_clause): Set flag when
- segments are created.
- * script-sections.h (Script_sections::segments_created_): New data
- member.
- 2015-06-03 Cary Coutant <ccoutant@gmail.com>
- PR gold/15370
- * script-sections.cc
- (Output_section_element_input::set_section_addresses): When there
- are several patterns with no sort spec, put all sections in the same
- bin.
- * testsuite/Makefile.am (script_test_12): New testcase.
- (script_test_12i): New testcase.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/script_test_12.t: New test linker script.
- * testsuite/script_test_12i.t: New test linker script.
- * testsuite/script_test_12a.c: New test source file.
- * testsuite/script_test_12b.c: New test source file.
- 2015-06-02 Cary Coutant <ccoutant@gmail.com>
- * nacl.h (Sniff_file): Switch parameters to get_view to get an
- aligned view.
- 2015-06-03 Cary Coutant <ccoutant@gmail.com>
- PR gold/17819
- * gold.cc (queue_final_tasks): When --build-id=tree, queue a
- separate task to schedule the build id computation.
- * layout.cc (Hash_task::Hash_task): Remove build_id_blocker,
- add Output_file and offset.
- (Hash_task::run): Get and release the input views.
- (Hash_task::is_runnable): Always return NULL (always runnable).
- (Layout::queue_build_id_tasks): Remove.
- (Layout::write_build_id): Add array_of_hashes and size_of_hashes
- parameters; use them instead of class members.
- (Build_id_task_runner::run): New function.
- (Close_task_runner::run): Pass array_of_hashes and size_of_hashes
- to write_build_id.
- * layout.h (Layout::queue_build_id_tasks): Remove.
- (Layout::write_build_id): Add array_of_hashes and size_of_hashes
- parameters.
- (Layout::array_of_hashes_): Remove.
- (Layout::size_of_array_of_hashes_): Remove.
- (Layout::input_view_): Remove.
- (Build_id_task_runner): New class.
- (Close_task_runner::Close_task_runner): Add array_of_hashes and
- size_of_hashes parameters.
- (Close_task_runner::array_of_hashes_): New data member.
- (Close_task_runner::size_of_hashes_): New data member.
- * testsuite/Makefile.am
- (flagstest_compress_debug_sections_and_build_id_tree): New test.
- * testsuite/Makefile.in: Regenerate.
- 2015-06-01 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * merge.cc (get_input_merge_map): Update for data structure change.
- (get_or_make_input_merge_map): Update for data structure change.
- * merge.h (Object_merge_map): Use a std::vector<std::pair>> instead of
- a std::map. Remove first_shnum_, first_map_, second_shnum_, second_map_.
- 2015-05-16 Alan Modra <amodra@gmail.com>
- * reloc.cc (Sized_relobj_file::find_functions): Use function_location.
- * powerpc.cc (Target_powerpc::do_calls_non_split): New function.
- (addi_12_1, addis_2_12, addis_12_1, cmpld_7_12_0): New constants.
- (lis_0): Rename from lis_0_0.
- 2015-04-29 Cary Coutant <cary@google.com>
- Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * gc.h (Garbage_collection::is_section_garbage): Change Object*
- to Relobj*.
- (Garbage_collection::add_reference): Likewise.
- (Garbage_collection::gc_process_relocs): Likewise. Don't push
- object/shndx pair onto *secvec for dynamic objects. Don't follow
- relocations pointing to dynamic objects for GC.
- * icf.cc (Icf::find_identical_sections): Change Object* to Relobj*.
- (Icf::unfold_section): Likewise.
- (Icf::is_section_folded): Likewise.
- (Icf::get_folded_section): Likewise.
- * icf.h: (Icf::get_folded_section): Likewise.
- (Icf::unfold_section): Likewise.
- (Icf::is_section_folded): Likewise.
- (Icf::section_has_function_pointers): Likewise.
- (Icf::set_section_has_function_pointers): Likewise.
- * object.h (Section_id): Likewise.
- (Const_section_id): Likewise.
- * output.cc (Output_section::update_section_layout): Likewise.
- * output.h: (Output_section_lookup_maps::find_relaxed_input_section):
- Likewise.
- * plugin.cc (update_section_order): Likewise.
- (unique_segment_for_sections): Likewise.
- * powerpc.cc (Powerpc_relobj::add_reference): Likewise.
- (Target_powerpc::do_gc_add_reference): Likewise.
- (Target_powerpc::gc_process_relocs): Likewise.
- (Target_powerpc::do_gc_add_reference): Likewise.
- * symtab.cc (Symbol_table::is_section_folded): Likewise.
- (Symbol_table::gc_mark_symbol): Likewise.
- * symtab.h: (Symbol_table::is_section_folded): Likewise.
- * target.h: (Sized_target::gc_add_reference): Likewise.
- (Sized_target::do_gc_add_reference): Likewise.
- 2015-04-29 Nick Clifton <nickc@redhat.com>
- * po/fi.po: Updated Finnish translation.
- 2015-04-28 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::do_dynsym_value): Use Address rather
- than unsigned int for find_global_entry result temp. Compare
- against invalid_address.
- (Target_powerpc::do_plt_address_for_global): Likewise.
- (Target_powerpc::Relocate::relocate): Likewise. Don't assert
- on plt call stub existence for debug info. Do assert for plt
- and global entry stub existence if an alloc section.
- 2015-04-28 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Relocate::relocate): Don't assert
- on missing global entry stub due to bogus debug info.
- 2015-04-27 Han Shen <shenhan@google.com>
- * options.h (--fix-cortex-a53-843419): Rename option.
- * aarch64.cc (AArch64_relobj::do_count_local_symbols): Use renamed
- option.
- (AArch64_relobj::scan_sections_for_stubs): Use renamed option.
- 2015-04-27 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- PR gold/18327
- * output.cc (Output_section::is_input_address_mapped): Assume a missing
- entry is mapped.
- * testsuite/Makefile.am: Add the eh_test test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/eh_test_a.cc: New test.
- * testsuite/eh_test_b.cc: New test.
- 2015-04-23 Sriraman Tallam <tmsriram@google.com>
- * options.h (--weak-unresolved-symbols): New option.
- * symtab.cc (Symbol_table::sized_write_globals): Change symbol
- binding to weak with new option.
- * symtab.h (is_weak_undefined): Check for new option.
- (is_strong_undefined): Check for new option.
- * testsuite/Makefile.am (weak_unresolved_symbols_test): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/weak_unresolved_symbols_test.cc: New file.
- 2015-04-20 Ian Coolidge <icoolidge@google.com>
- * symtab.cc (Symbol::should_add_dynsym_entry): Return true for
- GNU_UNIQUE.
- 2015-04-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * gc.cc (Garbage_collection::do_transitive_closure): Use back and
- push_back.
- * gc.h (Garbage_collection): Use a std::vector instead of a std::queue.
- * object.cc (Sized_relobj_file::do_layout): Use push_back.
- * powerpc.cc (process_gc_mark): Use push_back.
- (Target_powerpc::do_gc_mark_symbol): Use push_back.
- * symtab.cc (Symbol_table::gc_mark_symbol): Use push_back.
- 2015-04-16 Han Shen <shenhan@google.com>
- * aarch64.cc (AArch64_insn_utilities): New utility class.
- (AArch64_relobj::Mapping_symbol_position): New struct.
- (AArch64_relobj::Mapping_symbol_info): New typedef.
- (AArch64_relobj::do_count_local_symbols): New function overriding
- parent's implementation.
- (AArch64_relobj::mapping_symbol_info_): New member
- (AArch64_relobj::scan_erratum_843419): New method.
- (Target_aarch64::scan_erratum_843419_span): New method.
- (Target_aarch64::is_erratum_843419_sequence): New method.
- * options.h (fix_cortex_a53): New option.
- 2015-04-09 Cary Coutant <ccoutant@google.com>
- * symtab.cc (Symbol::final_value_is_known): Check for TLS symbol
- in a PIE link.
- * testsuite/Makefile.am (tls_pie_test.sh): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/tls_pie_test.sh: New.
- 2015-04-09 Cary Coutant <ccoutant@google.com>
- * debug.h (DEBUG_LOCATION): New.
- (DEBUG_ALL): Include DEBUG_LOCATION.
- (debug_string_to_enum): Add DEBUG_LOCATION.
- * dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Fix debug
- output to print correct context.
- (Sized_dwarf_line_info::do_addr2line): Add debug output. Return
- up to 4 more locations at the beginning of the function.
- * symtab.cc (Symbol_table::detect_odr_violations): Get canonical
- result before sorting list of line numbers.
- * testsuite/debug_msg.sh: Allow range of line numbers for
- canonical results on optimized code.
- 2015-04-07 HC Yen <hc.yen@mediatek.com>
- Add AArch32 support for gold linker.
- gold/
- * arm.cc: Add V8 arch combine table.
- 2015-04-06 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * aarch64.cc (do_reloc_addend): Fix signature to match the parent one.
- 2015-04-06 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * gc.cc (Garbage_collection::do_transitive_closure): Avoid a call
- to find by using the return value of insert.
- 2015-04-06 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * gc.cc (Garbage_collection::do_transitive_closure): Avoid a copy
- constructor call.
- 2015-04-06 Ilya Tocar <ilya.tocar@intel.com>
- PR gold/17641
- * x86_64.cc (Target_x86_64::can_convert_mov_to_lea): New.
- (Target_x86_64::Scan::local): Don't create GOT entry, when we
- can convert mov to lea.
- (Target_x86_64::Scan::global): Ditto.
- (Target_x86_64::Relocate::relocate): Convert mov foo@GOTPCREL(%rip),
- %reg to lea foo(%rip), %reg if possible.
- * testsuite/Makefile.am (x86_64_mov_to_lea): New test.
- * testsuite/x86_64_mov_to_lea1.s: New.
- * testsuite/x86_64_mov_to_lea2.s: Ditto.
- * testsuite/x86_64_mov_to_lea3.s: Ditto.
- * testsuite/x86_64_mov_to_lea4.s: Ditto.
- * testsuite/x86_64_mov_to_lea.sh: Ditto.
- 2015-04-02 H.J. Lu <hongjiu.lu@intel.com>
- * configure: Regenerated.
- 2015-04-01 Ilya Tocar <ilya.tocar@intel.com>
- PR gold/17640
- * i386.cc (Target_i386::can_convert_mov_to_lea): New.
- (Target_i386::Scan::local): Don't create GOT entry, when we
- can convert GOT to GOTOFF.
- (Target_i386::Scan::global): Ditto.
- (Target_i386::Relocate::relocate): Convert mov foo@GOT(%reg), %reg to
- lea foo@GOTOFF(%reg), %reg if possible.
- * testsuite/Makefile.am (i386_mov_to_lea): New test.
- * testsuite/i386_mov_to_lea1.s: New.
- * testsuite/i386_mov_to_lea2.s: Ditto.
- * testsuite/i386_mov_to_lea3.s: Ditto.
- * testsuite/i386_mov_to_lea4.s: Ditto.
- * testsuite/i386_mov_to_lea5.s: Ditto.
- * testsuite/i386_mov_to_lea.sh: Ditto.
- 2015-04-01 H.J. Lu <hongjiu.lu@intel.com>
- * Makefile.am (ZLIB): New.
- (ZLIBINC): Likewise.
- (AM_CFLAGS): Add $(ZLIBINC).
- (AM_CXXFLAGS): Likewise.
- (ldadd_varldadd_var): Add $(ZLIB).
- (incremental_dump_LDADD): Likewise.
- (dwp_LDADD): Likewise.
- * compressed_output.cc: Don't check HAVE_ZLIB_H to include
- <zlib.h>.
- (zlib_compress): Don't check HAVE_ZLIB_H.
- (zlib_decompress): Likewise.
- * options.h (compress_debug_sections): Likewise.
- * configure.ac (AM_CONDITIONAL): Removed.
- * testsuite/Makefile.am (ZLIB): New.
- (LDADD): Add $(ZLIB).
- Don't check HAVE_ZLIB.
- * Makefile.in: Regenerated.
- * config.in: Likewise.
- * configure: Likewise.
- * testsuite/Makefile.in: Likewise.
- 2015-03-30 Jing Yu <jingyu@google.com>
- * aarch64-reloc.def: New TLSLD_ADD_DTPREL_HI12,
- TLSLD_ADD_DTPREL_LO12_NC.
- * aarch64.cc (Target_aarch64::define_tls_base_symbol): Always let
- _TLS_MODULE_BASE_ point to the start of tls segment.
- (Target_aarch64::optimize_tls_reloc): Add cases for
- R_AARCH64_TLSLD_ADD_DTPREL_HI12 and
- R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC.
- (Target_aarch64::Scan::local): Likewise.
- (Target_aarch64::Scan::global): Likewise.
- (Target_aarch64::Relocate::relocate): Likewise.
- (Target_aarch64::Relocate::relocate_tls): Likewise. And remove
- subtracting tls segment size from symbol value for TLSLD_*_DTPREL
- relocations.
- 2015-03-27 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * merge.cc (Object_merge_map::add_mapping): call
- Object_merge_map::Input_merge_map::add_mapping.
- (Object_merge_map::Input_merge_map::add_mapping): New.
- (Output_merge_data::do_add_input_section): Call
- get_or_make_input_merge_map before a loop.
- (Output_merge_string<Char_type>::finalize_merged_data): Call
- get_or_make_input_merge_map before a loop.
- * merge.h (Object_merge_map): Make Input_merge_map public.
- * object.cc (Relobj::add_merge_mapping): Use get_or_create_merge_map.
- (Relobj::get_or_create_merge_map): New.
- * object.h (Relobj::get_or_create_merge_map): New.
- 2015-03-24 Alan Modra <amodra@gmail.com>
- PR 18147
- * powerpc.cc (Target_powerpc::Relocate::relocate): Don't report
- relocation errors for branches to strong undefined symbols.
- 2015-03-23 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * merge.cc (Object_merge_map::get_input_merge_map): Make it const.
- (Object_merge_map::is_merge_section_for): Remove.
- (Object_merge_map::find_merge_section): New.
- * merge.h (Object_merge_map::is_merge_section_for): Remove.
- (Object_merge_map::find_merge_section): New.
- (Object_merge_map::get_input_merge_map): Add a const version.
- * object.cc (Relobj::is_merge_section_for): Remove.
- (Relobj::find_merge_section): New.
- * object.h (Relobj::is_merge_section_for): Remove.
- (Relobj::find_merge_section): New.
- * output.cc
- (Output_section::Input_section::is_merge_section_for): Remove.
- (Output_section::add_merge_input_section): Don't call
- add_merge_input_section.
- (Output_section::find_merge_section): Return const. Use
- object->find_merge_section.
- (Output_section::build_lookup_maps): Don't build a map for
- merge sections.
- (Output_section::is_input_address_mapped): Return false if
- section is not found.
- (Output_section::find_starting_output_address): Use
- find_merge_section instead of is_merge_section_for.
- (Output_section::add_script_input_section): Don't build a map for
- merge sections.
- * output.h (Output_section_lookup_maps::merge_sections_by_id_): Remove.
- (Output_section_lookup_maps::find_merge_section): Remove.
- (Output_section_lookup_maps::add_merge_input_section) Remove.
- (Output_section::find_merge_section): Return const.
- 2015-03-22 Cary Coutant <cary@google.com>
- PR gold/18106
- * i386.cc (Target_i386::Relocate::tls_gd_to_ie): Fix support for
- non-SIB form of lea, with nop after the call.
- 2015-03-21 Cary Coutant <cary@google.com>
- PR gold/14217
- * output.cc (Output_segment::is_first_section_relro): Don't ignore
- .tdata section.
- (Output_segment::set_section_addresses): Don't align size of relro
- segment for .tbss.
- 2015-03-21 Cary Coutant <cary@google.com>
- PR gold/18010
- * stringpool.cc (Stringpool_template): Don't optimize if section
- alignment is greater than sizeof(char).
- 2015-03-21 Cary Coutant <cary@google.com>
- PR gold/18048
- * script-c.h (script_include_directive): Add first_token parameter.
- * script.cc (script_include_directive): Add first_token parameter, and
- pass it to read_script_file.
- * yyscript.y (PARSING_SECTIONS_BLOCK, PARSING_SECTION_CMDS)
- (PARSING_MEMORY_DEF): New tokens.
- (top): Add new productions for INCLUDE files.
- (file_cmd): Replace file_or_sections_cmd with copy of its productions.
- Pass PARSING_LINKER_SCRIPT to script_include_directive.
- (section_block_cmd): Likewise; pass PARSING_SECTIONS_BLOCK.
- (section_cmd): Pass PARSING_SECTION_CMDS.
- (file_or_sections_cmd): Remove.
- (memory_def): Pass PARSING_MEMORY_DEF.
- * testsuite/Makefile.am (memory_test_2): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/memory_test_inc.t: New script file.
- * testsuite/memory_test_inc_1.t.src: New script file.
- * testsuite/memory_test_inc_2.t.src: New script file.
- * testsuite/memory_test_inc_3.t.src: New script file.
- 2015-03-21 Cary Coutant <cary@google.com>
- * dwp.cc (Sized_relobj_dwo::do_section_contents): Delete.
- (Sized_relobj_dwo::setup): Build compressed section map.
- (Sized_relobj_dwo::do_decompressed_section_contents): Delete.
- * dynobj.cc (Sized_dynobj::base_read_symbols): Build compressed
- section map.
- * object.cc (Sized_relobj_file::Sized_relobj_file): Remove
- compressed_sections_ field.
- (build_compressed_section_map): Take Object instead of
- Sized_relobj_file parameter; add decompress_if_needed parameter.
- (Sized_relobj_file::do_find_special_sections): Store compressed
- section map in parent Object.
- (Sized_relobj_file::do_decompressed_section_contents): Move
- implementation to Object::decompressed_section_contents.
- (Sized_relobj_file::do_discard_decompressed_sections): Move
- implementation to Object::discard_decompressed_sections.
- * object.h (build_compressed_section_map): Declare.
- (Object::Object): Add compressed_sections_ field.
- (Object::section_is_compressed): Move implementation here.
- (Object::decompressed_section_contents): De-virtualize.
- (Object::discard_decompressed_sections): De-virtualize.
- (Object::do_section_is_compressed): Delete.
- (Object::do_decompressed_section_contents): Delete.
- (Object::set_compressed_sections): New method.
- (Object::compressed_sections): New method.
- (Object::compressed_sections_): New data member.
- (Compressed_section_info, Compressed_section_map): Move to top of file.
- (Sized_relobj_file::do_section_is_compressed): Delete.
- (Sized_relobj_file::do_decompressed_section_contents): Delete.
- (Sized_relobj_file::do_discard_decompressed_sections): Delete.
- (Sized_relobj_file::compressed_sections_): Move to Object class.
- 2015-03-21 Cary Coutant <ccoutant@google.com>
- PR gold/18152
- * gold.cc (queue_middle_tasks): Finalize .eh_frame after laying out
- deferred objects.
- 2015-03-11 Cary Coutant <ccoutant@google.com>
- * options.cc (General_options::finalize): Don't allow -z relro
- with incremental linking.
- * testsuite/Makefile.am (incremental_test): Add -z norelro.
- (incremental_test_2): Likewise.
- (incremental_test_3): Likewise.
- (incremental_test_4): Likewise.
- (incremental_test_5): Likewise.
- (incremental_test_6): Likewise.
- (incremental_copy_test): Likewise.
- (incremental_common_test_1): Likewise.
- (incremental_comdat_test_1): Likewise.
- * testsuite/Makefile.in: Regenerate.
- 2015-03-09 Cary Coutant <ccoutant@google.com>
- PR gold/14675
- * ehframe.cc (Eh_frame::add_ehframe_input_section): Change return type;
- return enum indicating whether .eh_frame section is empty, optimizable,
- unrecognized, or an end marker. Adjust explicit instantiations.
- * ehframe.h (Eh_frame::Eh_frame_section_disposition): New enum type.
- (Eh_frame::add_ehframe_input_section): Change return type.
- * gold.cc (queue_middle_tasks): Call Layout::finalize_eh_frame_section.
- * layout.cc (Layout::layout_eh_frame): Don't add optimized sections
- to the .eh_frame output section until we see the end marker.
- (Layout::finalize_eh_frame_section): New.
- * layout.h: (Layout::finalize_eh_frame_section): New.
- 2015-03-05 H.J. Lu <hongjiu.lu@intel.com>
- * output.cc (Relobj::initialize_input_to_output_map<size>):
- Remove typename on elfcpp::Elf_types<size>::Elf_Addr.
- 2015-03-04 Cary Coutant <ccoutant@google.com>
- * parameters.cc (Parameters::set_target_once): Call
- Target::select_as_default_target just once from here...
- (set_parameters_target): ...instead of from here.
- 2015-03-04 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * ehframe.cc (Cie::set_output_offset): Pass in and use a
- Output_section_data instead of a Merge_map.
- (Eh_frame::Eh_frame): Don't initialize merge_map_.
- (Eh_frame::read_cie): Use add_merge_mapping instead of
- Merge_map::add_mapping.
- (Eh_frame::read_fde): Ditto.
- (Eh_frame::set_final_data_size): Use this instead of this->merge_map_.
- (Eh_frame::do_output_offset): Use merge_output_offset istead of
- merge_map_->get_output_offset.
- (Eh_frame::do_is_merge_section_for): Delete.
- * ehframe.h (Fde::add_mapping): Pass in and use a Output_section_data
- instead of a Merge_map.
- (Cie::set_output_offset): Pass in a Output_section_data instead of a
- Merge_map.
- (Eh_frame::do_is_merge_section_for): Delete.
- (Eh_frame::merge_map_): Delete.
- * merge.cc (Object_merge_map::get_or_make_input_merge_map): Pass in
- and use a Output_section_data instead of a Merge_map.
- (Object_merge_map::add_mapping): Ditto.
- (Object_merge_map::get_output_offset): Remove the merge_map argument.
- (Object_merge_map::is_merge_section_for): Pass in and use a
- Output_section_data instead of a Merge_map.
- (Merge_map): Delete.
- (Output_merge_base::do_output_offset): Use merge_output_offset instead
- of merge_map_.get_output_offset.
- (Output_merge_base::do_is_merge_section_for): Delete.
- (Output_merge_data::do_add_input_section): Use
- object->add_merge_mapping instead of add_mapping.
- (Output_merge_string<Char_type>::finalize_merged_data): Ditto.
- * merge.h (Merge_map): Delete forward declaration.
- (Object_merge_map::add_mapping): Pass in and use a Output_section_data
- instead of a Merge_map.
- (Object_merge_map::get_output_offset): Remove the merge_map argument.
- (Object_merge_map::is_merge_section_for): Pass in and use a
- Output_section_data instead of a Merge_map.
- (Input_merge_map::Object_merge_map::merge_map): Replace with
- output_data.
- (Object_merge_map::get_or_make_input_merge_map): Pass in and use a
- Output_section_data instead of a Merge_map.
- (Merge_map): Delete.
- (Output_merge_base::Output_merge_base): Don't initialize merge_map_.
- (Output_merge_base::do_is_merge_section_for): Delete.
- (Output_merge_base::add_mapping): Delete.
- (Output_merge_base::merge_map_): Delete.
- * object.cc (Relobj::initialize_input_to_output_map): New.
- (Relobj::initialize_input_to_output_map): New.
- (Relobj::merge_output_offset): New.
- (Relobj::is_merge_section_for): New.
- (Relobj::initialize_input_to_output_map): Instantiate for 32 and 64
- bits.
- * object.h (Relobj::merge_map): Delete.
- (initialize_input_to_output_map): New.
- (set_merge_map): Delete.
- (add_merge_mapping): New.
- (merge_output_offset): New.
- (is_merge_section_for): New.
- * output.cc (Output_section::Input_section::is_merge_section_for):
- Use object->is_merge_section_for.
- * output.h (Output_section_data::is_merge_section_for): Delete.
- (Output_section_data::do_is_merge_section_for): Delete.
- * reloc.cc (Merged_symbol_value<size>::initialize_input_to_output_map):
- Use object->initialize_input_to_output_map.
- (Merged_symbol_value<size>::value_from_output_section): Use
- object->merge_output_offset.
- 2015-03-02 Peter Collingbourne <pcc@google.com>
- Cary Coutant <ccoutant@google.com>
- * output.cc (Output_section::add_merge_input_section): Do not
- attempt to merge sections with an entsize of 0.
- 2015-03-02 Khem Raj <raj.khem@gmail.com>
- * attributes.h (class Output_attributes_section_data ): Add
- do_print_to_mapfile function.
- 2015-02-24 Alan Modra <amodra@gmail.com>
- PR 18010
- * powerpc.cc (Powerpc_relocate_functions::addr16_ds): Always
- complain if value is not a multiple of four.
- (Target_powerpc::Relocate::relocate): Correct handling of
- R_POWERPC_GOT_TPREL16 and R_POWERPC_GOT_TPREL16_LO for ppc64.
- 2015-02-21 H.J. Lu <hongjiu.lu@intel.com>
- * configure.ac (default_size): Set to 32 for x32.
- * configure: Regenerated.
- 2015-02-18 Alan Modra <amodra@gmail.com>
- PR 17954
- * powerpc.cc (Global_symbol_visitor_opd::operator()): Set default
- visibility.
- 2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * gc.h (Garbage_collection::add_reference): Don't use find.
- 2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * object.cc (write_local_symbols): avoid std::vector copy.
- 2015-02-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * merge.cc (get_output_offset): Use upper_bound instead of lower_bound.
- 2015-02-09 Mark Wielaard <mjw@redhat.com>
- * gdb-index.cc (Gdb_index_info_reader::visit_top_die): Recognize
- DW_LANG_Fortran03 and DW_LANG_Fortran08.
- 2015-02-16 Cary Coutant <ccoutant@google.com>
- PR gold/13577
- PR gold/16992
- * layout.cc (Layout::finish_dynamic_section): Don't set DT_SYMBOLIC or
- DF_SYMBOLIC if --dynamic-list option is used.
- * options.cc (General_options::finalize): --dynamic-list is not
- mutually exclusive with -Bsymbolic.
- * symtab.h (Symbol::is_preemptible): Don't exclude dynamic symbols not
- listed in --dynamic-list.
- * testsuite/Makefile.am (dynamic_list_lib2.so): Add
- -Bsymbolic-functions.
- * testsuite/Makefile.in: Regenerate.
- 2015-02-16 Cary Coutant <ccoutant@google.com>
- PR gold/17971
- * incremental.cc: Remove redundant include of "output.h".
- 2015-02-12 Jing Yu <jingyu@google.com>
- * aarch64-reloc.def (TLSLE_MOVW_TPREL_G2, TLSLE_MOVW_TPREL_G1,
- TLSLE_MOVW_TPREL_G1_NC, TLSLE_MOVW_TPREL_G0, TLSLE_MOVW_TPREL_G0_NC,):
- New relocation.
- * aarch64.cc (Target_aarch64::Scan::local): Add cases for new
- TLSLE_MOVW_* relocations.
- (Target_aarch64::Scan::global): Likewise.
- (Target_aarch64::Relocate::relocate): Likewise.
- (Target_aarch64::Relocate::relocate_tls): Add cases and handlings
- for new TLSLE_MOVW_* relocations.
- 2015-02-11 Will Newton <will.newton@linaro.org>
- PR gold/13321
- * arm.cc (Target_arm::make_plt_section): Create an ARM
- state mapping symbol at the start of the PLT.
- 2015-02-09 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (two_file_shared_2_pic_1_test_DEPENDENCIES):
- Replace two_file_shared_2.so with two_file_shared_1.so.
- * testsuite/Makefile.in: Regenerated.
- 2015-02-09 Alan Modra <amodra@gmail.com>
- * testsuite/Makefile.am (MOSTLYCLEANFILES): Add libweak_undef_2.a,
- plugin_test_thin.a and defsym_test.
- * testsuite/Makefile.in: Regenerate.
- 2015-02-04 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * merge.cc (do_add_input_section): Combine loop epilogue into main loop
- body.
- 2015-02-04 Peter Collingbourne <pcc@google.com>
- * plugin.cc (Pluginobj::get_symbol_resolution_info): Resolve
- forwarding symbols when computing symbol resolution info for plugins.
- * plugin.h (Plugin_manager::symtab): New method.
- (Pluginobj::get_symbol_resolution_info): Add symtab parameter.
- 2015-02-03 Cary Coutant <ccoutant@google.com>
- Peter Collingbourne <pcc@google.com>
- PR gold/15660
- * archive.cc (Thin_archive_object_unlocker): New class.
- (Archive::include_member): Unlock external members of thin archives.
- * testsuite/Makefile.am (plugin_test_1): Rename .syms files.
- (plugin_test_2): Likewise.
- (plugin_test_3): Likewise.
- (plugin_test_4): Likewise.
- (plugin_test_5): Likewise.
- (plugin_test_6): Likewise.
- (plugin_test_7): Likewise.
- (plugin_test_8): Likewise.
- (plugin_test_9): Likewise.
- (plugin_test_10): Likewise.
- (plugin_test_11): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test.c (claim_file_hook): Check for parallel .syms
- file to decide whether to claim file.
- (all_symbols_read_hook): Likewise.
- * testsuite/plugin_test_1.sh: Adjust expected output.
- * testsuite/plugin_test_2.sh: Likewise.
- * testsuite/plugin_test_3.sh: Likewise.
- * testsuite/plugin_test_6.sh: Likewise.
- * testsuite/plugin_test_tls.sh: Likewise.
- * testsuite/plugin_test_11.sh: New testcase.
- 2015-02-03 Cary Coutant <ccoutant@google.com>
- * descriptors.cc (Descriptors::open): Set artificially-low limit for
- file descriptors when debugging enabled. Add debug output.
- (Descriptors::release): Add debug output.
- (Descriptors::close_some_descriptor): Likewise.
- (Descriptors::close_all): Likewise.
- * fileread.cc (File_read::lock): Likewise.
- (File_read::unlock): Likewise.
- 2015-02-02 Cary Coutant <ccoutant@google.com>
- * x86_64.cc (Target_x86_64::Relocate::relocate_tls): Check for
- executable output file.
- 2015-01-22 Han Shen <shenhan@google.com>
- * arm.cc (Target_arm::Target_arm): Add initialization for new members.
- (Target_arm::do_plt_address_for_global): New method.
- (Target_arm::do_plt_address_for_local): New method.
- (Target_arm::rel_irelative_section): New method.
- (Target_arm::make_data_plt): Add more parameters for plt ctor.
- (Target_arm::do_make_data_plt): Add more parameters for plt ctor.
- (Target_arm::Scan::symbol_needs_plt_entry): Add ifunc support.
- (Target_arm::Scan::reloc_needs_plt_for_ifunc): Add ifunc support.
- (Target_arm::Scan::check_non_pic): Add ifunc support.
- (Target_arm::Scan::local): Add ifunc support.
- (Target_arm::Scan::global): Add ifunc support.
- (Target_arm::make_plt_section): New method.
- (Target_arm::make_plt_entry): Change to call to make_plt_section.
- (Target_arm::make_local_ifunc_plt_entry): New method.
- (Target_arm::got_irelative_): New member.
- (Target_arm::rel_irelative_): New member.
- (Target_arm::got_section): Add creation for got_irelative_.
- (Target_arm::rel_dyn_section): Add creation for rel_irelative_.
- (Target_arm::Relocate::relocate): Properly set local ifunc address.
- (Target_arm::do_dynsym_value): Properly set global ifunc address.
- (Target_arm::scan_reloc_for_stub): Properly set global ifunc address.
- (Output_data_plt_arm::IRelative_data): New type.
- (Output_data_plt_arm::Output_data_plt_arm): Add more parameters.
- (Output_data_plt_arm::add_entry): Add more parameters.
- (Output_data_plt_arm::add_relocation): New method.
- (Output_data_plt_arm::add_local_ifunc_entry): New method.
- (Output_data_plt_arm::rel_irelative): New method.
- (Output_data_plt_arm::entry_count): Modified.
- (Output_data_plt_arm::address_for_global): New method.
- (Output_data_plt_arm::address_for_local): New method.
- gold/
- (Output_data_plt_arm::set_final_data_size): Add irelative_count_.
- (Output_data_plt_arm::insert_irelative_data): New method.
- (Output_data_plt_arm::irelative_rel_): New member.
- (Output_data_plt_arm::got_): New member.
- (Output_data_plt_arm::got_irelative_): New member.
- (Output_data_plt_arm::irelative_count_): New member.
- (Output_data_plt_arm::IRelative_data_vec): New typedef.
- (Output_data_plt_arm::irelative_data_vec_): New member.
- (Output_data_plt_arm::do_write): Write out irelative entries.
- (Output_data_plt_arm_standard::Output_data_plt_arm_standard): Add
- more parameters to ctor.
- (Output_data_plt_arm_nacl::Output_data_plt_arm_nacl): Add
- more parameters to ctor.
- * output.h (Output_data_reloc::add_local_relative): New method.
- * aarch64.cc (Output_data_plt_aarch64): Fixed typo in comment.
- 2015-01-29 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Relocate::relocate): Correct GOT_TLSLD
- and GOT_TLSGD to LE optimization.
- 2015-01-28 Cary Coutant <ccoutant@google.com>
- * x86_64.cc (Target_x86_64::Scan::global): Allow IE-to-LE optimization
- for undef TLS symbols.
- (Target_x86_64::Relocate::relocate_tls): Likewise.
- (Target_x86_64::Relocate::tls_ie_to_le): Likewise.
- 2015-01-25 Cary Coutant <ccoutant@google.com>
- * output.cc (Output_segment::set_section_addresses): Fix calculation
- of size of relro segment.
- 2015-01-22 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Scan::local <got relocs>): Correct
- condition for need of ifunc plt entry.
- (Target_powerpc::Scan::global <got relocs>): Likewise.
- 2015-01-14 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * mips.cc (reloc_high): Add r_sym.
- (Mips_relocate_functions::relhi16): Add r_sym parameter. Pass r_sym to
- reloc_high constructor.
- (Mips_relocate_functions::relgot16_local): Likewise.
- (Mips_relocate_functions::rello16): Add r_sym parameter. Use r_sym and
- r_type to decide whether LO16 matches HI16.
- (Target_mips::Relocate::relocate): Pass r_sym to calls to relhi16,
- rello16 and relgot16_local.
- 2015-01-09 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::set_segment_offsets): Don't align start of segment
- unless alignment is larger than page size.
- 2015-01-06 H.J. Lu <hongjiu.lu@intel.com>
- Cary Coutant <ccoutant@google.com>
- PR gold/17729
- * configure.ac (DEFAULT_TARGET_X86_64): Don't set for x32.
- (DEFAULT_TARGET_X32): Set for x32.
- * x86_64.cc (cmp_insn_32): New.
- (lea_r10_insn_32): Likewise.
- (lea_r11_insn_32): Likewise.
- (cmp_insn_64): Likewise.
- (lea_r10_insn_64): Likewise.
- (lea_r11_insn_64): Likewise.
- (Target_x86_64<size>::do_calls_non_split): Handle x32.
- * testsuite/Makefile.am (check_SCRIPTS): Add split_x32.sh.
- (check_DATA): Add split_x32 files.
- (split_x32_[1234n].o): New targets.
- (split_x32_[124]): New targets.
- (split_x32_[1234r].stdout): New targets.
- * testsuite/split_x32.sh: New file.
- * testsuite/split_x32_1.s: Likewise.
- * testsuite/split_x32_2.s: Likewise.
- * testsuite/split_x32_3.s: Likewise.
- * testsuite/split_x32_4.s: Likewise.
- * testsuite/split_x32_n.s: Likewise.
- * configure: Regenerated.
- * testsuite/Makefile.in: Likewise.
- 2015-01-06 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/17809
- * x86_64.cc (Target_x86_64<size>::Relocate::tls_ie_to_le): Handle
- x32.
- 2015-01-02 Alan Modra <amodra@gmail.com>
- * version.cc (print_version): Just print current year.
- * dwp.cc (print_version): Likewise.
- 2015-01-01 Alan Modra <amodra@gmail.com>
- Update year range in copyright notice of all files.
- 2014-12-25 Alan Modra <amodra@gmail.com>
- * arm.cc (Target_arm::do_adjust_elf_header): Provide namespace on
- new enums.
- (Target_arm::merge_object_attributes, ): Likewise.
- 2014-12-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
- * arm.cc (Target_arm::do_adjust_elf_header): Set e_flags in ELF header
- as hard float only when Tag_ABI_VFP_args is 1, using new enum value
- AEABI_VFP_args_vfp to check that.
- (Target_arm::merge_object_attributes): Handle new Tag_ABI_VFP_args
- value and replace hardcoded values by enum values.
- 2014-12-22 Cary Coutant <ccoutant@google.com>
- * powerpc.cc (Target_powerpc::relocate): Fix overflow check.
- 2014-12-20 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/14608
- * testsuite/debug_msg.cc (SometimesInlineFunction): Changed
- to "return i * i * 3;".
- 2014-12-16 Cary Coutant <ccoutant@google.com>
- * mapfile.cc (Mapfile::print_input_section): Print uncompressed sizes.
- (Mapfile::print_output_data): Use current_data_size() to avoid
- assert for sections requiring postprocessing; if address is not valid,
- print 0.
- (Mapfile::print_output_section): Use current_data_size(); print note
- that addresses and sizes are before compression.
- 2014-12-14 H.J. Lu <hongjiu.lu@intel.com>
- * aarch64.cc (AArch64_relocate_functions::maybe_apply_stub):
- Cast current_group_size to unsigned long when reporting error.
- 2014-12-10 Jing Yu <jingyu@google.com>
- * aarch64.cc (Target_aarch64): Add new variable stub_group_size_.
- (AArch64_relocate_functions::maybe_apply_stub): Add new parameter.
- Update error message.
- (Target_aarch64::do_relax): Use absolute value of option
- stub_group_size. Replace local variable with class member
- stub_group_size_.
- 2014-12-04 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Branch_info::make_stub): Ignore
- addend of PLTREL24 reloc when not generating a plt stub. Make
- max_branch_offset an "Address".
- (Stub_table::can_reach_stub): Make max_branch_offset an "Address".
- (Target_powerpc::Relocate::relocate): Likewise.
- 2014-12-04 Alan Modra <amodra@gmail.com>
- PR 17670
- * symtab.cc (Symbol::set_undefined): Remove assertion.
- * powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
- on symbols defined in discarded sections, instead return false.
- Rearrange params, update all callers.
- (Target_powerpc::Branch_info::make_stub): Don't make stubs for
- branches to syms in discarded sections.
- (Global_symbol_visitor_opd::operator()): Set discarded opd syms
- undefined and flag as discarded.
- (Target_powerpc::Relocate::relocate): Localize variable.
- 2014-12-03 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/17675
- * testsuite/Makefile.am (pie_copyrelocs_test_CXXFLAGS): New.
- * testsuite/Makefile.in: Regenerated.
- 2014-12-03 Alan Modra <amodra@gmail.com>
- PR 17566
- * powerpc.cc (Target_powerpc::Scan::local): Use add_local_section
- when adding dynamic relocations against section symbols.
- 2014-12-01 Dimitry Ivanov <dimitry@google.com>
- * layout.cc (Layout::finish_dynamic_section): When '-z global'
- is specified set DF_1_GLOBAL in DT_FLAGS_1 flags.
- * options.h (General_options): New -z option (global).
- 2014-12-01 Cary Coutant <ccoutant@google.com>
- PR gold/17578
- * layout.cc (Layout::layout_gnu_stack): Don't warn when -z execstack
- is given.
- (Layout::create_executable_stack_info): Warn when -z noexecstack is
- given but some inputs require executable stack.
- 2014-11-26 Cary Coutant <ccoutant@google.com>
- * layout.cc (gdb_sections): Keep .debug_gdb_scripts and
- .debug_str_offsets; strip .debug_gnu_pubnames and
- .debug_gnu_pubtypes.
- (lines_only_debug_sections): Strip all four new sections.
- 2014-11-26 Jing Yu <jingyu@google.com>
- * aarch64.cc (Relocate::tls_desc_gd_to_ie): Set ldr target
- register to be x0 when to relax TLSDESC_LD64_LO12.
- 2014-11-26 Alan Modra <amodra@gmail.com>
- * powerpc.cc (struct Stub_table_owner): New.
- (Powerpc_relobj): Rename stub_table_ to stub_table_index_, an
- unsigned int vector. Update all references.
- (powerpc_relobj::set_stub_table): Take an unsigned int param
- rather than a Stub_table. Update callers.
- (Powerpc_relobj::clear_stub_table): New function.
- (Target_powerpc): Add relax_failed_, relax_fail_count_ and
- stub_group_size_ vars.
- (Target_powerpc::new_stub_table): Delete.
- (max_branch_delta): New function, extracted from..
- (Target_powerpc::Relocate::relocate): ..here..
- (Target_powerpc::Branch_info::make_stub): ..and here. Return
- status on whether stub created successfully.
- (Stub_control::Stub_control): Add "no_size_errors" param. Move
- default sizing to..
- (Target_powerpc::do_relax): ..here. Init stub_group_size_ and
- reduce on relax failure.
- (Target_powerpc::group_sections): Add "no_size_errors" param.
- Use stub_group_size_. Set up group info in a temp vector,
- before building Stub_table vector. Account for input sections
- possibly already converted to relaxed sections.
- (Stub_table::init): Delete. Merge into..
- (Stub_table::Stub_table): ..here.
- (Stub_table::can_reach_stub): New function.
- (Stub_table::add_plt_call_entry): Add "from" parameter and
- return true iff stub could be reached.
- (Stub_table::add_long_branch_entry): Similarly. Add "r_type"
- param too.
- (Stub_table::clear_stubs): Add "all" param.
- 2014-11-26 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Stub_control::set_output_and_owner): New function.
- (Target_powerpc::group_sections): Use it.
- 2014-11-25 Cary Coutant <ccoutant@google.com>
- * binary.cc (Binary_to_elf::sized_convert): Add size to _start symbol.
- (Binary_to_elf::write_symbol): Add st_size parameter.
- * binary.h (Binary_to_elf::write_symbol): Add st_size parameter.
- 2014-11-25 Cary Coutant <ccoutant@google.com>
- PR gold/17639
- * object.cc (Sized_relobj_file): Initialize is_deferred_layout_.
- (Sized_relobj_file::do_layout): Handle deferred sections properly
- during GC pass 1. Don't add reloc sections to deferred list twice.
- * object.h (Sized_relobj_file::is_deferred_layout): New function.
- (Sized_relobj_file::is_deferred_layout_): New data member.
- 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/17619
- * x86_64.cc (Output_data_plt_x86_64_standard<size>::do_fill_plt_entry):
- Check PC-relative offset overflow in PLT entry.
- 2014-11-21 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Relocate::relocate): Correct test
- for undefined weaks.
- 2014-11-20 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Stub_control::Stub_control): Init stub14_group_size_
- from --stub-group-size parameter divided by 1024.
- (Powerpc_relocate_functions::rela, rela_ua): Add fieldsize
- template parameter. Update all uses.
- (Target_powerpc::Relocate::relocate): Rename has_plt_value to
- has_stub_value. Set for long branches. Don't report overflow for
- branch to undefined weak symbols. Print info message on
- overflowing branch to stub.
- 2014-11-20 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::do_relax): Add __go_go to thread_starters.
- 2014-11-13 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (Target_x86_64<size>::Scan::global): Don't make PLT
- entry for R_X86_64_GOTPLT64.
- (Target_x86_64<size>::Relocate::relocate): Update comments for
- R_X86_64_GOTPLT64.
- 2014-11-06 Evgeniy Dushistov <dushistov@mail.ru>
- * plugin.cc: use lock to searialize calls of Plugin_manager::claim_file
- * plugin.h: add lock definition
- 2014-10-29 Han Shen <shenhan@google.com>
- Jing Yu <jingyu@google.com>
- * aarch64-reloc.def: Add LD_PREL_LO12, ADR_PREL_LO21,
- TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC, TLSLD_MOVW_DTPREL_G1,
- TLSLD_MOVW_DTPREL_G0_NC. Change property of TLS relocations to
- Symbol::TLS_REF.
- * aarch64.cc (Target_aarch64::do_can_check_for_function_pointers): New
- method.
- (Target_aarch64::reloc_needs_plt_for_ifunc): New method.
- (Target_aarch64::tls_ld_to_le): New method.
- (Target_aarch64::aarch64_info): Enable can_icf_inline_merge_sections
- for 64bit targets.
- (Output_data_plt_aarch64::irelative_rel_): New data member.
- (Output_data_plt_aarch64::add_entry): Add irelative entries to plt.
- (Output_data_plt_aarch64::add_local_ifunc_entry): New method.
- (Output_data_plt_aarch64::add_relocation): New method.
- (Output_data_plt_aarch64::do_write): Add gold_assert on got_irelative
- offset. Add got_irelative size to got size.
- (AArch64_relocate_functions): Typedef AArch64_valtype. Replace long
- type string with the new typename.
- (AArch64_relocate_functions::update_adr): Replace parameter x with
- immed.
- (AArch64_relocate_functions::update_movnz): Correct wrong val mask.
- (AArch64_relocate_functions::reloc_common): New method.
- (AArch64_relocate_funcsions::rela_general): Extract common part out
- into reloc_common method.
- (AArch64_relocate_functions::rela_general): Likewise.
- (AArch64_relocate_functions::pcrela_general): Likewise.
- (AArch64_relocate_functions::adr): New method.
- (AArch64_relocate_functions::adrp): Calculate immed before calling
- update_adr.
- (AArch64_relocate_functions::adrp): Likewise.
- (AArch64_relocate_functions::movnz): Cast x to SignedW type when
- comparing x to 0. Calculate immed from ~x when x < 0.
- (Target_aarch64::optimize_tls_reloc): Add new cases for
- TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC, TLSLD_MOVW_DTPREL_G1,
- TLSLD_MOVW_DTPREL_G0_NC.
- (Target_aarch64::possible_function_pointer_reloc): Implement this
- method.
- (Target_aarch64::Scan::local_reloc_may_be_function_pointer): Update
- comment.
- (Target_aarch64::Scan::local): Add codes to handle STT_GNU_IFUNC
- symbol. Add cases for TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC,
- TLSLD_MOVW_DTPREL_G1, TLSLD_MOVW_DTPREL_G0_NC.
- (Target_aarch64::Scan::global): Add codes to handle STT_GNU_IFUNC
- symbol. Add cases for TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC,
- TLSLD_MOVW_DTPREL_G1, TLSLD_MOVW_DTPREL_G0_NC.
- (Target_aarch64::make_plt_entry): Call add_entry with two more
- parameters.
- (Target_aarch64::make_local_ifunc_plt_entry): New method.
- (Target_aarch64::Relocate::relocate): Add cases for LD_PREL_LO19,
- ADR_PREL_LO21, TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC,
- TLSLD_MOVW_DTPREL_G1, TLSLD_MOVW_DTPREL_G0_NC.
- (Target_aarch64::Relocate::relocate_tls): Add cases for
- TLSLD_ADR_PAGE21, TLSLD_ADD_LO12_NC, TLSLD_MOVW_DTPREL_G1,
- TLSLD_MOVW_DTPREL_G0_NC.
- * testsuite/icf_safe_so_test.cc: Correct test comment.
- * testsuite/icf_safe_test.sh: Add AArch64 arch.
- 2014-10-22 Alan Modra <amodra@gmail.com>
- * powerpc.cc (do_relax): Add gcc-4.9 libgomp functions to
- thread_starter.
- 2014-10-18 Andreas Schwab <schwab@linux-m68k.org>
- * configure.tgt (targ_extra_obj) [aarch64*-*]: Define.
- 2014-10-17 Cary Coutant <ccoutant@google.com>
- * aarch64.cc (AArch64_relocate_functions::maybe_apply_stub):
- Add "typename" keyword.
- 2014-10-15 Han Shen <shenhan@google.com>
- Jing Yu <jingyu@google.com>
- Patch for gold aarch64 backend to support relaxation.
- * aarch64-reloc.def: Change format.
- * aarch64.cc (class Reloc_stub): New class.
- (class Stub_table): New class.
- (class AArch64_relobj): New class.
- (class AArch64_input_section): New class.
- (class AArch64_output_section): New class.
- (Target_aarch64::new_stub_table): New method.
- (Target_aarch64::new_aarch64_input_section): New method.
- (Target_aarch64::find_aarch64_input_section): New method.
- (Target_aarch64::scan_section_for_stubs): New method.
- (Target_aarch64::scan_reloc_section_for_stubs): New method.
- (Target_aarch64::relocate_stub): New method.
- (Target_aarch64::current_target): New method.
- (Target_aarch64::do_make_elf_object): New method.
- (Target_aarch64::do_may_relax): New method.
- (Target_aarch64::do_relax): New method.
- (Target_aarch64::group_sections): New method.
- (Target_aarch64::scan_reloc_for_stub): New method.
- (Target_aarch64::do_make_output_section): New method.
- (Target_aarch64::stub_tables_): New data member.
- (Target_aarch64::aarch64_input_section_map_): New data member.
- (AArch64_relocate_functions::maybe_apply_stub): New method.
- 2014-09-30 Cary Coutant <ccoutant@google.com>
- PR gold/17432
- * resolve.cc (Symbol_table::resolve): Fix local shadowing error.
- 2014-09-30 Kito Cheng <kito@0xlab.org>
- PR gold/13597
- * layout.cc (Layout::create_dynamic_symtab): Build gnu-style
- hash table before sysv-style hash table.
- 2014-09-29 Sriraman Tallam <tmsriram@google.com>
- * options.h (--pic-executable): Add negative to alias to -no-pie.
- 2014-09-26 Cary Coutant <ccoutant@google.com>
- PR gold/16773
- * object.cc (Sized_relobj_file): Compute value of section symbols
- for TLS sections the same as TLS symbols.
- 2014-09-25 Cary Coutant <ccoutant@google.com>
- PR gold/17432
- * resolve.cc (Symbol_table::resolve): Override common placeholder
- symbols, but adjust sizes.
- * symtab.cc (Symbol_table::add_from_object): Don't add placeholder
- symbols to common lists.
- 2014-09-24 Alan Modra <amodra@gmail.com>
- * po/POTFILES.in: Regenerate.
- 2014-09-23 Taiju Tsuiki <tzik@google.com>
- Cary Coutant <ccoutant@google.com>
- PR gold/14860
- * gold.cc (queue_final_tasks): Add Write_sections_task as a blocker
- on input_sections_blocker.
- * layout.cc (Write_sections_task::locks): Unblock
- input_sections_blocker_.
- * layout.h (Write_sections_task::Write_sections_task): Add
- input_sections_blocker.
- * testsuite/Makefile.am (exception_x86_64_bnd_test): Add gcctestdir/ld
- to DEPENDENCIES.
- * testsuite/Makefile.in: Regenerate.
- 2014-09-18 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * testsuite/Makefile.am (plugin_test_10): New test.
- * testsuite/Makefile.in: Regenerate
- * testsuite/plugin_common_test_2.c (c1): Align to 8.
- * testsuite/plugin_test_10.sh: New file.
- 2014-09-17 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
- * plugin.cc (Sized_pluginobj::do_add_symbols): Ignore isym->size.
- * resolve.cc (Symbol_table::resolve): Don't override common symbols
- during the replacement phase.
- 2014-09-17 Han Shen <shenhan@google.com>
- Jing Yu <jingyu@google.com>
- * aarch64-reloc.def: Add TLSGD_ADR_PAGE21, TLSGD_ADD_LO12_NC,
- TLSDESC_ADR_PAGE21, TLSDESC_LD64_LO12, TLSDESC_ADD_LO12, TLSDESC_CALL.
- * aarch64.cc (Target_aarch64): Add data members
- got_irelative_, got_tlsdesc_, rela_irelative_, got_mod_index_offset_,
- tlsdesc_reloc_info_, tls_base_symbol_defined_. Initialize them in
- constructor.
- (Target_aarch64::do_reloc_symbol_index): New method.
- (Target_aarch64::do_reloc_addend): New method.
- (Target_aarch64::add_tlsdesc_info): New method.
- (Target_aarch64::do_dynsym_value): New method.
- (Target_aarch64::do_make_data_plt): Add new parameters: got,
- got_irelative. Pass them to Output_data_plt_aarch64_standard.
- (Target_aarch64::make_data_plt): Add new parameters: got,
- got_irelative. Pass them to do_make_data_plt.
- (Target_aarch64::Relocate): Add skip_call_tls_get_addr_ variable.
- (Target_aarch64::Relocate:tls_gd_to_le): New method.
- (Target_aarch64::Relocate:tls_ie_to_le): New method.
- (Target_aarch64::Relocate:tls_desc_gd_to_le): New method.
- (Target_aarch64::Relocate:tls_desc_gd_to_ie): New method.
- (Target_aarch64::got_tlsdesc_section): New method.
- (Target_aarch64::make_local_ifunc_plt_entry): New method.
- (Target_aarch64::define_tls_base_symbol): New method.
- (Target_aarch64::reserve_tlsdesc_entries): New method.
- (Target_aarch64::got_mod_index_entry): New method.
- (Target_aarch64::rela_tlsdesc_section): New method.
- (Target_aarch64::rela_irelative_section): New method.
- (Target_aarch64::Tlsdesc_info): New struct.
- (Target_aarch64::got_section): Create .got.plt space for IRELATIVE
- relocations and tlsdesc relocations.
- (Target_aarch64::optimize_tls_reloc): Implement method.
- (Output_data_plt_aarch64): Add member variables: tlsdesc_rel_, got_,
- got_irelative_, irelative_count_, tlsdesc_got_offset_. Initialize them
- in constructor.
- (Output_data_plt_aarch64::reserve_tlsdesc_entry): New method.
- (Output_data_plt_aarch64::has_tlsdesc_entry): New method.
- (Output_data_plt_aarch64::get_tlsdesc_got_offset): New method.
- (Output_data_plt_aarch64::get_tlsdesc_plt_offset): New method.
- (Output_data_plt_aarch64::rela_tlsdesc): New method.
- (Output_data_plt_aarch64::rela_irelative): New method.
- (Output_data_plt_aarch64::entry_count): Count IRELATIVE relocations.
- (Output_data_plt_aarch64::first_plt_entry_offset): Add const attribute.
- (Output_data_plt_aarch64::get_plt_tlsdesc_entry_size): New method.
- (Output_data_plt_aarch64::fill_tlsdesc_entry): New method.
- (Output_data_plt_aarch64::do_get_plt_tlsdesc_entry_size): New method.
- (Output_data_plt_aarch64::do_fill_tlsdesc_entry): New method.
- (Output_data_plt_aarch64_standard): New member variables:
- plt_tlsdesc_entry_size, tlsdesc_plt_entry.
- (Output_data_plt_aarch64_standard::Output_data_plt_aarch64_standard):
- New parameter: got, got_irelative.
- (Output_data_plt_aarch64_standard::do_get_plt_entry_size): New method.
- (Output_data_plt_aarch64_standard::do_fill_tlsdesc_entry): New method.
- (Output_data_plt_aarch64::do_write): Replace got_address with
- gotplt_address. Add irelative_count_ to count. Write tlsdesc entry.
- (AArch64_relocate_functions::update_movnz): New method.
- (AArch64_relocate_functions): Correct format.
- (AArch64_relocate_functions::movnz): New method.
- (Target_aarch64::Scan::local): Correct format. Move r_sym, got to
- before the switch. Add new cases to switch.
- Check ie_to_le relaxation on tlsie relocations. Add code handling
- tlsgd tlsdesc cases.
- (Target_aarch64::Scan::global): Move arp to front. Do copy_reloc when
- needed. Add new cases to switch. Insert dynamic RELATIVE relocation
- when needed. Add code handling tlsgd, tlsie, tlsdesc cases.
- Call reloc_name_in_error_message to print unsupported reloc.
- (Target_aarch64::make_plt_section): Pass got_ and got_irelative_ to
- make_data_plt.
- (Target_aarch64::do_finalize_sections): Emit relocs to save COPY
- relocs. Fill in some more dynamic tags.
- (Target_aarch64::Relocate::relocate): Handle tlsgd, tlsdesc relocs.
- Skip call tls_get_addr when tlsgd is relaxed.
- (Target_aarch64::Relocate::relocate_tls): Correct format. Add code
- handling tlsgd, tlsdesc relocs, and tls gd->le, ie->le, tlsdesc->le,
- tlsdesc->ie relaxation.
- 2014-09-03 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * mips.cc (Target_mips_nacl): New class.
- (Target_selector_mips_nacl): New class.
- (target_selector_mips32): Rename from target_selector_mips32be and use
- Target_selector_mips_nacl instead of Target_selector_mips.
- (target_selector_mips32el): Rename from target_selector_mips32 and use
- Target_selector_mips_nacl instead of Target_selector_mips.
- (target_selector_mips64): Rename from target_selector_mips64be and use
- Target_selector_mips_nacl instead of Target_selector_mips.
- (target_selector_mips64el): Rename from target_selector_mips64 and use
- Target_selector_mips_nacl instead of Target_selector_mips.
- (Target_mips::mips_info): Add const attribute.
- 2014-09-02 Cary Coutant <ccoutant@google.com>
- * dwp.cc (Sized_relobj_dwo::do_section_name): Add const attribute.
- * dynobj.h (Sized_dynobj::do_section_name): Likewise.
- * incremental.cc (Sized_relobj_incr::do_section_name): Likewise.
- (Sized_incr_dynobj::do_section_name): Likewise.
- * incremental.h (Sized_relobj_incr::do_section_name): Likewise.
- (Sized_incr_dynobj::do_section_name): Likewise.
- * object.h (Object::section_name): Likewise.
- (Object::do_section_name): Likewise.
- (Sized_relobj_file::do_section_name): Likewise.
- * plugin.cc (Sized_pluginobj::do_section_name): Likewise.
- * plugin.h (Sized_pluginobj::do_section_name): Likewise.
- 2014-09-02 Cary Coutant <ccoutant@google.com>
- PR gold/17005
- * ehframe.cc (Fde::write): Add output_offset parameter.
- (Cie::write): Likewise.
- (Eh_frame::set_final_data_size): Account for offset within output
- section.
- (Eh_frame::do_sized_write): Likewise.
- * ehframe.h (Fde::write): Add output_offset parameter.
- (Cie::write): Likewise.
- * output.cc (Output_section::Input_section_sort_entry): Remove
- section_has_name_; add output_section_name parameter. Use
- output section name for non-input sections.
- (Output_section::Input_section_sort_entry::section_has_name): Remove.
- (Output_section::Input_section_sort_entry::section_has_name_): Remove.
- (Output_section::Input_section_sort_compare): Remove logic for
- sections without names.
- (Output_section::Input_section_sort_init_fini_compare): Likewise.
- (Output_section::Input_section_sort_section_prefix_special_ordering_compare):
- Likewise.
- (Output_section::Input_section_sort_section_name_compare): Likewise.
- 2014-08-29 Han Shen <shenhan@google.com>
- Jing Yu <jingyu@google.com>
- * aarch64-reloc-property.cc
- (AArch64_reloc_property_table::reloc_name_in_error_message): Fix bug in
- reference reloc property in the table.
- * aarch64-reloc.def: Add TLSLE reloc types and fix some errors in
- 3 other entries.
- * aarch64.cc: (Output_data_got_aarch64::add_static_reloc):
- 2 new overloaded methods.
- (Output_data_got_aarch64::do_write): Add code to write out
- static relocs.
- (class Output_data_got_aarch64::Static_reloc): New class to wrap
- static relocs.
- (Output_data_got_aarch64::static_relocs): New vector to
- hold static relocs.
- (Target_aarch64::TCB_SIZE): New const static memeber.
- (Target_aarch64::tcb_size): New method.
- (Target_aarch64::Relocate::relocate): Add code handling new reloc types.
- (Target_aarch64::Relocate::relocate_tls): New method.
- (Target_aarch64::Scan::local): Add code handling new reloc types.
- (Target_aarch64::Scan::global): Add code handling new reloc types.
- 2014-08-13 Sriraman Tallam <tmsriram@google.com>
- * options.h (-no-pie): Add option.
- 2014-08-08 Jing Yu <jingyu@google.com>
- Han Shen <shenhan@google.com>
- * Makefile.am (HFILES): Add aarch64-reloc-property.h.
- (DEFFILES): add aarch64-reloc.def.
- (TARGETSOURCES): Add aarch64-reloc-property.cc.
- (ALL_TARGETOBJS): Add aarch64-reloc-property.$(OBJEXT).
- * Makefile.in: Regenerate.
- * aarch64-reloc-property.cc: New file.
- * aarch64-reloc-property.h: New file.
- * aarch64-reloc.def: New file.
- * aarch64.cc: Include aarch64-reloc-property.h. Replace spaces
- with tab to make the format consistent.
- (Output_data_got_aarch64::symbol_table_): New method.
- (Target_aarch64::do_plt_address_for_global): New method.
- (Target_aarch64::do_plt_address_for_local): New method.
- (Target_aarch64::do_select_as_default_target): New method.
- (Target_aarch64::do_make_data_plt): New method.
- (Target_aarch64::make_data_plt): New method.
- (Output_data_plt_aarch64::has_irelative_section): New method.
- (Output_data_plt_aarch64::address_for_global): New method.
- (Output_data_plt_aarch64::address_for_local): New method.
- (Output_data_plt_aarch64::irelative_rel_): New parameter.
- (Output_data_plt_aarch64::add_entry): Implement contents.
- (Output_data_plt_aarch64::set_final_data_size): Fix typo.
- (Output_data_plt_aarch64::do_write): Remove useless got_base. Set
- the got_pov entry to plt0.
- (Output_data_plt_aarch64_standard::do_fill_first_plt_entry):
- Implement contents.
- (Output_data_plt_aarch64_standard::do_fill_plt_entry): Implement.
- (AArch64_howto): New struct.
- (aarch64_howto[]): New static const array.
- (AArch64_relocate_functions): New class.
- (Target_aarch64::Scan::get_reference_flags): Remove method.
- (Target_aarch64::Scan::local): Implement to support a few relocations.
- (Target_aarch64::Scan::global): Implement to support a few relocations.
- (Target_aarch64::make_plt_section): Implement contents.
- (Target_aarch64::make_plt_entry): Implement contents.
- (Target_aarch64::do_finalize_sections): Implement contents.
- (Target_aarch64::Relocate::relocate): Implement a few relocations.
- (Target_aarch64::relocate_section): Implement contents.
- 2014-08-06 Alan Modra <amodra@gmail.com>
- * testsuite/defsym_test.sh: Allow ppc64le localentry annotation.
- 2014-08-06 Alan Modra <amodra@gmail.com>
- PR 13227
- * symtab.cc (Symbol_table::add_from_relobj): Warn on __gnu_lto_slim.
- 2014-07-21 Sriraman Tallam <tmsriram@google.com>
- * object.cc (Relobj::is_section_name_included): Add
- ".rodata.nptl_version" to not garbage collect this section.
- 2014-07-08 Cary Coutant <ccoutant@google.com>
- * expression.cc (struct Expression::Expression_eval_info): Add
- new fields type_pointer, vis_pointer, and nonvis_pointer.
- (Expression::eval_maybe_dot): Add type_pointer, vis_pointer, and
- nonvis_pointer parameters. Adjust all calls.
- (Symbol_expression::value): Update type, visibility, and nonvis bits
- in caller.
- * script.cc (Symbol_assignment::sized_finalize): Update type,
- visibility, and remaining st_other bits for new symbol.
- * script.h: (Expression::eval_maybe_dot): Add type_pointer,
- vis_pointer, and nonvis_pointer parameters.
- * symtab.h (Symbol::set_type): New method.
- * testsuite/Makefile.am (defsym_test): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/defsym_test.c: New file.
- * testsuite/defsym_test.sh: New file.
- 2014-07-08 Cary Coutant <ccoutant@google.com>
- PR gold/15639
- * dynobj.h (Sized_dynobj::base_read_symbols): New method.
- * dynobj.cc (Sized_dynobj::do_read_symbols): Move body to...
- (Sized_dynobj::base_read_symbols): ...new method.
- * object.h (Sized_relobj_file::base_read_symbols): New method.
- * object.cc (Sized_relobj_file::do_read_symbols): Move body to...
- (Sized_relobj_file::base_read_symbols): ...new method.
- * arm.cc (Arm_relobj::do_read_symbols): Call base_read_symbols.
- * mips.cc: (Mips_relobj::do_read_symbols): Likewise.
- * powerpc.cc (Powerpc_dynobj::do_read_symbols): Likewise.
- 2014-07-04 Alan Modra <amodra@gmail.com>
- * po/POTFILES.in: Regenerate.
- 2014-07-02 Jing Yu <jingyu@google.com>
- * aarch64.cc: New file
- * Makefile.am (TARGETSOURCES): Add aarch64.cc
- (ALL_TARGETOBJS): Add aarch64.$(OBJEXT)
- * Makefile.in: Regenerate.
- * configure.tgt: Add entries for aarch64*.
- * configure.ac: Likewise.
- * configure: Likewise.
- 2014-06-27 Alan Modra <amodra@gmail.com>
- * symtab.cc (Symbol::should_add_dynsym_entry): Don't make inline.
- 2014-06-24 Cary Coutant <ccoutant@google.com>
- * dwp.cc (Dwo_file::read): Allow files with no .debug_types
- sections.
- (Dwo_file::sized_read_unit_index): Likewise.
- 2014-06-23 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * mips.cc: New file.
- * Makefile.am (TARGETSOURCES): Add mips.cc
- (ALL_TARGETOBJS): Add mips.$(OBJEXT)
- * configure.tgt: Add entries for mips*.
- * configure.ac: Likewise.
- * Makefile.in: Regenerate.
- * configure: Likewise.
- 2014-06-09 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_pubnames_table::read_header): Check that
- unit_length is within section bounds.
- 2014-06-09 Cary Coutant <ccoutant@google.com>
- PR gold/16980
- * layout.cc (Layout::print_to_mapfile): Print unattached sections in
- map.
- 2014-06-07 Alan Modra <amodra@gmail.com>
- * powerpc.cc (relocate): Treat field of cmpli insn as a bitfield.
- 2014-06-06 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.h (Dwarf_pubnames_table): Remove output_section_offset_.
- * dwarf_reader.cc (Dwarf_pubnames_table::read_section): Likewise.
- (Dwarf_pubnames_table::read_header): Likewise.
- * layout.cc (gdb_fast_lookup_sections): Add .debug_gnu_pubnames and
- .debug_gnu_pubtypes.
- 2014-06-05 Joel Brobecker <brobecker@adacore.com>
- * Makefile.am (CONFIG_STATUS_DEPENDENCIES): New.
- * Makefile.in, configure: Regenerate.
- 2014-06-03 Alan Modra <amodra@gmail.com>
- * powerpc.cc (addis_12_2): Define.
- (Stub_table::do_write): Support fusion on ELFv2 stubs.
- 2014-06-03 Alan Modra <amodra@gmail.com>
- * testsuite/plugin_test.c (parse_readelf_line): Skip non-visibility
- st_other output.
- 2014-06-02 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::local_reloc_may_be_function_pointer):
- Only ignore relocs on ELFv1.
- (Target_powerpc::global_reloc_may_be_function_pointer): Likewise.
- 2014-05-30 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (ehdr_start_test_4): Fix typo in -B option.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/ehdr_start_test_4.sh: Look for "U" instead of "w".
- 2014-05-27 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/16945
- * x86_64.cc (Target_x86_64::Relocate::relocate): Use signed int
- for got_offset. Properly get GOT address for R_X86_64_PLTOFF64.
- 2014-05-15 Alan Modra <amodra@gmail.com>
- * powerpc.cc (do_plt_fde_location): Handle zero length .glink.
- Compare FDE contents with DW_CFA_nop rather than 0.
- 2014-05-13 Sriraman Tallam <tmsriram@google.com>
- * symtab.h (may_need_copy_reloc): Remove check for position independent
- code.
- * x86_64.cc (Target_x86_64<size>::Scan::global): Add check for no
- position independence before pc absolute may_need_copy_reloc call.
- Add check for executable output befor pc relative may_need_copy_reloc
- call.
- * i386.cc: Ditto.
- * arm.cc: Ditto.
- * sparc.cc: Ditto.
- * tilegx.cc: Ditto.
- * powerpc.cc: Add check for no position independence before
- may_need_copy_reloc calls.
- * testsuite/pie_copyrelocs_test.cc: New file.
- * testsuite/pie_copyrelocs_shared_test.cc: New file.
- * Makefile.am (pie_copyrelocs_test): New test.
- * Makefile.in: Regenerate.
- 2014-05-08 Martin Liška <mliska@suse.cz>
- * output.cc (Sized_relobj_file::do_layout): Fix typo in info message.
- 2014-05-06 Cary Coutant <ccoutant@google.com>
- PR gold/16900
- * i386.cc (Output_data_got_plt_i386): New class.
- (Output_data_plt_i386::Output_data_plt_i386): Change type of got_plt
- parameter. Change all callers.
- (Output_data_plt_i386::layout_): Remove.
- (Output_data_plt_i386::got_plt_): Change type.
- (Target_i386::got_plt_): Change type. Change all references.
- (Target_i386::got_section): Create instance of new class.
- (Output_data_got_plt_i386::do_write): New function.
- * x86_64.cc (Output_data_got_plt_x86_64): New class.
- (Output_data_plt_x86_64::Output_data_plt_x86_64): Change type of got_plt
- parameter. Change all callers.
- (Output_data_plt_x86_64::layout_): Remove.
- (Output_data_plt_x86_64::got_plt_): Change type.
- (Target_x86_64::got_plt_): Change type. Change all references.
- (Target_x86_64::got_section): Create instance of new class.
- (Output_data_got_plt_x86_64::do_write): New function.
- (Output_data_plt_x86_64::do_write): Don't write reserved words in GOT.
- (Target_x86_64<size>::init_got_plt_for_update): Create instance of new
- class.
- 2014-05-05 Cary Coutant <ccoutant@google.com>
- * gdb-index.cc (Gdb_index_info_reader): Don't complain about language
- if we have pubnames/pubtypes.
- 2014-05-02 Cary Coutant <ccoutant@google.com>
- * defstd.cc (in_segment): Define __ehdr_start here...
- * layout.cc (Layout::finalize): ...Instead of here. Set the
- output segment when known.
- * resolve.cc (Symbol::override_base_with_special): Remember
- the original binding.
- * symtab.cc (Symbol::set_output_segment): New function.
- (Symbol::set_undefined): New function.
- * symtab.h (Symbol::is_weak_undefined): Check original undef
- binding.
- (Symbol::is_strong_undefined): New function.
- (Symbol::set_output_segment): New function.
- (Symbol::set_undefined): New function.
- * target-reloc.h (is_strong_undefined): Remove.
- (issue_undefined_symbol_error): Call Symbol::is_weak_undefined.
- Check for hidden undefs.
- (relocate_section): Call Symbol::is_strong_undefined.
- * testsuite/Makefile.am (ehdr_start_test_1)
- (ehdr_start_test_2, ehdr_start_test_3)
- (ehdr_start_test_4, ehdr_start_test_5): New test cases.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/ehdr_start_def.cc: New source file.
- * testsuite/ehdr_start_test.cc: New source file.
- * testsuite/ehdr_start_test.t: New linker script.
- * testsuite/ehdr_start_test_4.sh: New shell script.
- 2014-04-23 Cary Coutant <ccoutant@google.com>
- PR gold/16870
- * x86_64.cc (Target_x86_64::Relocate::relocate): Add missing break.
- 2014-04-15 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * layout.cc (Layout::include_section): Allow a target to decide
- whether to include a section.
- * target.h (Target::should_include_section): New function.
- (Target::do_should_include_section): New function.
- 2014-04-15 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * copy-relocs.cc (Copy_relocs::Copy_reloc_entry::emit): Remove and
- inline into ...
- (Copy_relocs::emit): ... here.
- * copy-relocs.h (Copy_reloc_entry): Change from class to struct.
- (Copy_reloc_entry::make_copy_reloc): Change from private to protected.
- (Copy_reloc_entry::entries_): Change from private to protected.
- 2014-04-02 Sriraman Tallam <tmsriram@google.com>
- * icf.cc (get_section_contents): Replace copies of reloc
- vectors with const references.
- 2014-04-02 Cary Coutant <ccoutant@google.com>
- * configure.ac (HAVE_PUBNAMES): Use C instead of C++.
- (HAVE_NO_USE_LINKER_PLUGIN): Check for -fno-use-linker-plugin.
- * configure: Regenerate.
- * testsuite/Makefile.am (OPT_NO_PLUGINS): New macro for
- -fno-use-linker-plugin.
- (LINK1, CXXLINK1): Add it to the link command.
- * testsuite/Makefile.in: Regenerate.
- 2014-03-12 Alan Modra <amodra@gmail.com>
- * Makefile.in: Regenerate.
- 2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * symtab.h (Symbol::set_nonvis): New function.
- 2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * symtab.cc (Sized_symbol<32>::init_output_data):
- Instantiate the template.
- (Sized_symbol<64>::init_output_data): Likewise.
- 2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * symtab.cc (Symbol_table::sized_write_globals): Allow a target to
- adjust dynamic symbol value.
- * target.h (Target::adjust_dyn_symbol): New function.
- (Target::do_adjust_dyn_symbol): New function.
- 2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * output.cc (Output_data_dynamic::Dynamic_entry::write):
- Get the value of DYNAMIC_CUSTOM dynamic entry.
- * output.h (Output_data_dynamic::add_custom): New function.
- (Dynamic_entry::Dynamic_entry): New constructor for DYNAMIC_CUSTOM
- dynamic entry.
- (enum Dynamic_entry::Classification): Add DYNAMIC_CUSTOM.
- * target.h (Target::dynamic_tag_custom_value): New function.
- (Target::do_dynamic_tag_custom_value): New function.
- 2014-03-10 Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * symtab.cc (Symbol_table::set_dynsym_indexes): Allow a target to set
- dynsym indexes.
- * target.h (Target::has_custom_set_dynsym_indexes): New function.
- (Target::do_has_custom_set_dynsym_indexes): New function.
- (Target::set_dynsym_indexes): New function.
- (Target::do_set_dynsym_indexes): New function.
- 2014-03-07 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relocate_functions::Overflow_check): Add
- CHECK_UNSIGNED, CHECK_LOW_INSN, CHECK_HIGH_INSN.
- (Powerpc_relocate_functions::has_overflow_unsigned): New function.
- (Powerpc_relocate_functions::has_overflow_bitfield,
- overflowed): Use the above.
- (Target_powerpc::Relocate::relocate): Correct overflow checking
- for a number of relocations. Modify overflow test for 16-bit
- fields in instructions to signed/unsigned according to whether
- the field takes a signed or unsigned value.
- 2014-03-05 Alan Modra <amodra@gmail.com>
- Update copyright years.
- 2014-03-05 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Scan::local, global): Support
- R_PPC64_ADDR64_LOCAL.
- (Target_powerpc::Relocate::relocate): Likewise.
- 2014-03-03 Alan Modra <amodra@gmail.com>
- * dwp.cc (print_version): Update copyright year to current.
- 2014-02-10 Alan Modra <amodra@gmail.com>
- * po/gold.pot: Regenerate.
- 2014-02-06 Cary Coutant <ccoutant@google.com>
- Fix problem where -u is ignored when a weak undef is seen.
- * archive.cc (Library_base::should_include_member): Reorder
- code to check for -u option if a weak undef has already been seen.
- * testsuite/Makefile.am (weak_undef_test_2): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/weak_undef_file3.cc: New file.
- * testsuite/weak_undef_file4.cc: New file.
- * testsuite/weak_undef_test_2.cc: New file.
- 2014-02-05 Cary Coutant <ccoutant@google.com>
- Fix issues with gold undefined symbol diagnostics.
- PR binutils/15435
- * errors.cc (Errors::undefined_symbol): Move undef vtable symbol
- check to here.
- * target-reloc.h (is_strong_undefined): New function.
- (relocate_section): Move undef vtable symbol check from here.
- Check for is_strong_undefined.
- 2014-02-05 Cary Coutant <ccoutant@google.com>
- Fix problems with the --dynamic-list option.
- PR gold/13577
- * options.cc (General_options::parse_dynamic_list):
- Set have_dynamic_list_.
- (General_options::General_options): Initialize have_dynamic_list_.
- (General_options::finalize): Turn off -Bsymbolic and
- -Bsymbolic-functions if --dynamic-list provided.
- * options.h (General_options::have_dynamic_list): New function.
- (General_options::have_dynamic_list_): New data member.
- * symtab.h (Symbol::is_preemptible): Handle --dynamic-list
- correctly.
- PR gold/16530
- * symtab.cc (Symbol_table::add_from_relobj): If symbol is named
- in --dynamic-list, mark it.
- * testsuite/Makefile.am (gc_dynamic_list_test.sh): New test case.
- (dynamic_list_2): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/dynamic_list_2.cc: New file.
- * testsuite/dynamic_list_2.t: New file.
- * testsuite/dynamic_list_lib1.cc: New file.
- * testsuite/dynamic_list_lib2.cc: New file.
- * testsuite/gc_dynamic_list_test.c: New file.
- * testsuite/gc_dynamic_list_test.sh: New file.
- * testsuite/gc_dynamic_list_test.t: New file.
- 2014-01-28 Cary Coutant <ccoutant@google.com>
- Add .gdb_index version 7 support.
- * gold/dwarf_reader.cc: include <utility> (for make_pair).
- (Dwarf_abbrev_table::do_read_abbrevs): Check for compressed
- debug sections.
- (Dwarf_ranges_table::read_ranges_table): Likewise.
- (Dwarf_pubnames_table::read_section): Check for GNU-style
- sections, and for compressed debug sections.
- (Dwarf_pubnames_table::read_header): Compute end address of table.
- (Dwarf_pubnames_table::next_name): Return flag_byte. Check
- for end of list by offset, not by offset == 0.
- (Dwarf_info_reader::do_read_string_table): Check for compressed
- debug sections.
- * gold/dwarf_reader.h (Dwarf_pubnames_table::Dwarf_pubnames_table):
- Initialize new data members.
- (Dwarf_pubnames_table::next_name): return flag_byte.
- (Dwarf_pubnames_table::end_of_table_): New data member.
- (Dwarf_pubnames_table::is_gnu_style_): New data member.
- * gold/gdb-index.cc (gdb_index_version): Update to version 7.
- (Gdb_index_info_reader::read_pubtable): Read flag_byte.
- (Gdb_index_info_reader::read_pubnames_and_pubtypes): Don't
- read skeleton type unit DIEs.
- (Gdb_index::add_symbol): Add flag_byte; adjust all callers.
- (Gdb_index::do_write): Write flag_byte.
- * gold/gdb-index.h (Gdb_index::add_symbol): Add flags parameter.
- (Gdb_index::Cu_vector): Store flags along with cu indexes.
- * gold/testsuite/gdb_index_test_3.sh: Allow versions 4-7.
- * gold/testsuite/gdb_index_test_comm.sh: Likewise.
- 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
- * version.cc (print_version): Update copyright year to 2014.
- 2013-12-19 Dimitry Andric <dimitry@andric.com>
- * stringpool.cc (Stringpool_template::reserve): Add
- HAVE_UNORDERED_MAP case.
- * stringpool.cc (Stringpool_template::print_stats): Likewise.
- 2013-12-18 Cary Coutant <ccoutant@google.com>
- * configure.ac: Check for <unordered_set> and <unordered_map>.
- * config.in: Regenerate.
- * configure: Regenerate.
- * system.h: Use <unordered_set> and <unordered_map> if available.
- 2013-12-10 Roland McGrath <mcgrathr@google.com>
- * Makefile.am (install-exec-local): Prefix $(INSTALL_PROGRAM) uses
- with $(INSTALL_PROGRAM_ENV).
- * Makefile.in: Regenerate.
- 2013-11-22 Cary Coutant <ccoutant@google.com>
- * configure.ac: Add check for which library is needed for
- dlopen.
- * configure: Regenerate.
- 2013-11-22 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (exception_x86_64_bnd_test): Use in-tree
- assembler.
- * testsuite/Makefile.in: Regenerate.
- 2013-11-17 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (Target_x86_64<size>::Scan::get_reference_flags):
- Handle R_X86_64_PC32_BND and R_X86_64_PLT32_BND just like
- R_X86_64_PC32 and R_X86_64_PLT32, respectively.
- (Target_x86_64<size>::Scan::local): Likewise.
- (Target_x86_64<size>::Scan::global): Likewise.
- (Target_x86_64<size>::Relocate::relocate): Likewise.
- (Target_x86_64<size>::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- (Target_x86_64<size>::Scan::check_non_pic(): Handle
- R_X86_64_PC32_BND.
- * testsuite/Makefile.am (check_PROGRAMS): Add
- exception_x86_64_bnd_test.
- (exception_x86_64_bnd_test_SOURCES): New macro.
- (exception_x86_64_bnd_test_DEPENDENCIES): Likewise.
- (exception_x86_64_bnd_test_LDFLAGS): Likewise.
- (exception_x86_64_bnd_test_LDADD): Likewise.
- (exception_x86_64_bnd_1.o): New rule.
- (exception_x86_64_bnd_2.o): Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2013-11-15 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::glink_section): Provide non-const
- accessor.
- (Target_powerpc::Branch_info::make_stub): Make global entry stubs.
- Only call ppc64_local_entry_offset for 64-bit. Restrict
- symval_for_branch lookup to ELFv1.
- (Stub_table::add_plt_call_entry): Use unsigned int off.
- (Output_data_glink::Address, invalid_address): New.
- (Output_data_glink::add_eh_frame): Move out of line. Add
- support for ELFv2.
- (Output_data_glink::add_global_entry, find_global_entry,
- global_entry_address): New functions.
- (Output_data_glink::global_entry_stubs_, end_branch_table_,
- ge_size): New variables.
- (Output_data_glink::set_final_data_size): Add global entry
- stub sizing.
- (Output_data_glink::do_write): Write global entry stubs.
- (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Add target
- parameter. Return true for ELFv2. Adjust callers.
- (Target_powerpc::Scan::local, global): Restrict opd lookup to
- ELFv1. Similarly for ifunc and dynamic relocation processing
- specific to ELFv1. Recognize that symbols are defined on
- their plt entries for ELFv2.
- (Target_powerpc::symval_for_branch): Assert if called for
- ELFv2 or ppc32.
- (Target_powerpc::Relocate::relocate): Use global entry plt
- stub for symbol value if such exists on ELFv2.
- (Target_powerpc::Relocate::relocate): Don't call
- symval_for_branch when ELFv2. Do adjust for local entry
- offset when ELFv2.
- (Target_powerpc::do_dynsym_value): Set symbols to global entry
- plt stub for ELFv2.
- (Target_powerpc::do_plt_address_for_global): Similarly.
- 2013-11-14 Cary Coutant <ccoutant@google.com>
- Revert patch -- this did not fix the problem, and there is
- no race there.
- 2013-11-14 Cary Coutant <ccoutant@google.com>
- PR gold/14860
- * ehframe.cc (Eh_frame_hdr::Eh_frame_hdr): Initialize lock_.
- (Ehframe_hdr::set_final_data_size): Allocate a Lock.
- * ehframe.h (Eh_frame_hdr::record_fde): Hold the lock while
- updating fde_offsets_.
- (Eh_frame_hdr::lock_): New data member.
- 2013-11-14 Cary Coutant <ccoutant@google.com>
- * dwp.cc (Dwo_file_entry): New type.
- (File_list): Use Dwo_file_entry.
- (Dwo_file::verify): New function.
- (Dwo_file::verify_dwo_list): New function.
- (Dwo_file::sized_verify_dwo_list): New function.
- (Dwo_name_info_reader::visit_compilation_unit): Add dwo_id to file
- list.
- (Dwp_options): New enum type.
- (dwp_options): Add --verify-only.
- (usage): Likewise.
- (main): Likewise.
- * dwp.h (gold_info): Add declaration.
- 2013-11-14 Cary Coutant <ccoutant@google.com>
- PR gold/14860
- * ehframe.cc (Eh_frame_hdr::Eh_frame_hdr): Initialize lock_.
- (Ehframe_hdr::set_final_data_size): Allocate a Lock.
- * ehframe.h (Eh_frame_hdr::record_fde): Hold the lock while
- updating fde_offsets_.
- (Eh_frame_hdr::lock_): New data member.
- 2013-11-06 Cary Coutant <ccoutant@google.com>
- PR gold/15758
- * object.cc (Sized_relobj_file::do_layout): Handle .eh_frame sections
- before reloc sections.
- 2013-11-04 Alan Modra <amodra@gmail.com>
- * symtab.h (Symbol::Reference_flags): Add FUNC_DESC_ABI.
- (Symbol::needs_dynamic_reloc): Test new flag.
- * powerpc.cc (needs_dynamic_reloc, use_plt_offset): Delete.
- (Target_powerpc::Scan::get_reference_flags): Add target param.
- Return FUNC_DESC_ABI for 64-bit ELFv1.
- (Target_powerpc::Branch_info::make_stub): Adjust get_reference_flags
- call.
- (Target_powerpc::Scan::global): Use Symbol::needs_dynamic_reloc.
- (Target_powerpc::Relocate::relocate): Use Symbol::use_plt_offset.
- 2013-10-31 Cary Coutant <ccoutant@google.com>
- Restore support for dwp v2 DWARF package file format.
- * dwarf_reader.cc (Dwarf_info_reader::visit_type_unit): Add
- tu_length parameter. Adjust all callers.
- * dwarf_reader.h (Dwarf_info_reader::visit_type_unit): Likewise.
- * dwp.cc: Include dwarf.h.
- (Section_bounds): New struct type.
- (Unit_set): New struct type.
- (Dwo_file::Dwo_file): Initialize new data member.
- (Dwo_file::read_compunit_index, Dwo_file::read_typeunit_index):
- Combine and rename to...
- (Dwo_file::read_unit_index): ...this.
- (Dwo_file::sized_read_compunit_index)
- (Dwo_file::sized_read_typeunit_index): Combine and rename to...
- (Dwo_file::sized_read_unit_index): ...this.
- (Dwo_file::copy_section): Remove section_name, is_str_offsets
- parameters; add section_id parameter.
- (Dwo_file::add_cu_set, Dwo_file::add_tu_set): Combine and rename to...
- (Dwo_file::add_unit_set): ...this.
- (Dwo_file::shndx_map_): Remove.
- (Dwo_file::sect_offsets_): New data member.
- (Dwp_output_file::Dwp_output_file): Initialize new data members.
- (Dwp_output_file::add_section): Rename to...
- (Dwp_output_file::add_contribution): ...this.
- (Dwp_output_file::add_cu_set): Combine parameters into a struct.
- (Dwp_output_file::add_tu_set): Likewise.
- (Dwp_output_file::Contribution): New type.
- (Dwp_output_file::Section::contributions): New data member.
- (Dwp_output_file::Cu_or_tu_set): Remove.
- (Dwp_output_file::Section::Section): New ctor.
- (Dwp_output_file::Dwp_index::Shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::Section_table): New type.
- (Dwp_output_file::Dwp_index::Dwp_index): Initialize new data members.
- (Dwp_output_file::Dwp_index::enter_set): Change type of "set"
- parameter.
- (Dwp_output_file::Dwp_index::shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::shndx_pool_end): Remove.
- (Dwp_output_file::Dwp_index::section_table): New member function.
- (Dwp_output_file::Dwp_index::section_table_end): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_size): Remove.
- (Dwp_output_file::Dwp_index::section_table_rows): New member function.
- (Dwp_output_file::Dwp_index::section_table_cols): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_): Remove.
- (Dwp_output_file::Dwp_index::section_table_): New data member.
- (Dwp_output_file::Dwp_index::section_mask_): New data member.
- (Dwp_output_file::add_output_section): New member function.
- (Dwp_output_file::write_new_section): New member function.
- (Dwp_output_file::write_contributions): New member function.
- (Dwp_output_file::section_id_map_): New data member.
- (class Dwo_id_info_reader): Remove.
- (class Unit_reader): New class.
- (get_dwarf_section_name): New function.
- (Dwo_file::read_executable): Adjust initializations of class data.
- (Dwo_file::read): Add support for v2 package file format.
- (Dwo_file::read_unit_index): Likewise.
- (Dwo_file::sized_read_unit_index): Likewise.
- (Dwo_file::copy_section): Likewise.
- (Dwo_file::add_unit_set): Likewise.
- (Dwp_output_file::add_output_section): Likewise.
- (Dwp_output_file::add_contribution): Likewise.
- (Dwp_output_file::Dwp_index::find_or_add): Use row index to check
- for empty slot.
- (Dwp_output_file::Dwp_index::enter_set): Add support for v2 package
- file format.
- (Dwp_output_file::Dwp_index::grow): Use row index to check for empty
- slot.
- (Dwp_output_file::initialize): Remove unused function.
- (Dwp_output_file::finalize): Add support for v2 package file format.
- (Dwp_output_file::write_index): Likewise.
- * gdb-index.cc (Gdb_index_info_reader::visit_type_unit): Adjust
- function prototype.
- 2013-10-31 Cary Coutant <ccoutant@google.com>
- * configure.ac: Fix check for -fmerge-constants.
- * configure.ac: Regenerate.
- 2013-10-30 Roland McGrath <mcgrathr@google.com>
- * x86_64.cc (Output_data_plt_x86_64_nacl::first_plt_entry):
- Correct 9-byte nop sequence to match what the assembler generates.
- 2013-10-30 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::abiversion, set_abiversion,
- ppc64_local_entry_offset, ppc64_local_entry_offset,
- do_read_symbols): New functions.
- (Powerpc_relobj::e_flags_, st_other_): New vars.
- (Powerpc_relobj::Powerpc_relobj): Call set_abiversion.
- (Powerpc_dynobj::abiversion, set_abiversion): New functions.
- (Powerpc_relobj::e_flags_): New var.
- (Target_powerpc::first_plt_entry_offset, plt_entry_size): Inline
- and adjust for ELFv2.
- (Target_powerpc::abiversion, set_abiversion, stk_toc): New functions.
- (Powerpc_relobj::do_find_special_sections): Check no .opd in ELFv2.
- (Powerpc_dynobj::do_find_special_sections): Likewise.
- (Target_powerpc::do_define_standard_symbols): Define ".TOC.".
- (Target_powerpc::Branch_info::make_stub): Adjust stub destination
- to ELFv2 local entry.
- (Target_powerpc::do_relax): No thread safe barriers needed for
- ELFv2.
- (Output_data_plt_powerpc::initial_plt_entry_size_,
- plt_entry_size): Delete. Replace all uses with
- first_plt_entry_offset() and plt_entry_size().
- (Output_data_plt_powerpc::Output_data_plt_powerpc): Remove
- reserved_size parm. Update callers.
- (Output_data_plt_powerpc::entry_count): Update.
- (Output_data_plt_powerpc::first_plt_entry_offset): Make private
- and use Target_powerpc::first_plt_entry_offset().
- (Output_data_plt_powerpc::get_plt_entry_size): Similarly and
- rename to plt_entry_size.
- (Output_data_plt_powerpc::add_ifunc_entry,
- add_local_ifunc_entry): Adjust reloc for ELFv2.
- (glink_eh_frame_fde_64): Rename to glink_eh_frame_fde_64v1.
- (glink_eh_frame_fde_64v2): New.
- (Stub_table::plt_call_size): Support ELFv2 sizing.
- (Output_data_glink::add_eh_frame): Use the new FDE.
- (Output_data_glink::set_final_data_size): Adjust for ELFv2 glink.
- (Stub_table::do_write): Write ELFv2 stubs and glink.
- (Target_powerpc::Relocate::relocate): Replaces nop after call
- with ld 2,24(1) and adjust local offset destination for ELFv2.
- 2013-10-30 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Scan::check_non_pic): Handle new relocs.
- (Target_powerpc::Scan::global, local): Likewise.
- (Target_powerpc::Relocate::relocate): Likewise. Check for overflow
- on all ppc64 @h and @ha relocs.
- 2013-10-14 Alan Modra <amodra@gmail.com>
- * output.h (Output_data_got::add_constant): Tidy.
- (Output_data_got::add_constant_pair): New function.
- * powerpc.cc (Output_data_got_powerpc): Override all Output_data_got
- methods used so as to first call reserve_ent().
- 2013-10-11 Roland McGrath <mcgrathr@google.com>
- * powerpc.cc (Output_data_got_powerpc): Remove unused methods
- add_got_entry and add_got_entry_pair.
- * configure.ac (TLS_GNU2_DIALECT): Use -Werror in test.
- (HAVE_PUBNAMES): Likewise.
- * configure: Regenerate.
- * testsuite/Makefile.am: Replace '-T foo' with '-Wl,-T,foo' throughout.
- * testsuite/Makefile.in: Regenerate.
- * target.h (Target::adjust_elf_header, Target::do_adjust_elf_header):
- Remove const from declaration.
- * target.cc (Sized_target::do_adjust_elf_header): Update definition.
- * sparc.cc (Target_sparc::do_adjust_elf_header): Likewise.
- * output.h (Output_file_header): Remove const from member target_
- and corresponding constructor argument.
- * output.cc (Output_file_header::Output_file_header): Update prototype.
- (Output_file_header::do_sized_write): Use this->target_ in place
- of parameters()->target().
- * testsuite/undef_symbol.cc (Foo::get_a): New method.
- * configure.ac (MERGE_CONSTANTS_FLAG): New check.
- * configure: Regenerate.
- * Makefile.in: Regenerate.
- * testsuite/merge_string_literals_1.c: Renamed to have .cc suffix.
- * testsuite/merge_string_literals_2.c: Likewise.
- * testsuite/Makefile.am
- (merge_string_literals_1.o, merge_string_literals_2.o): Update deps.
- (AM_CFLAGS, AM_CXXFLAGS): Use $(MERGE_CONSTANTS_FLAG) in place of
- literal -fmerge-constants.
- * testsuite/Makefile.in: Regenerate.
- * i386.cc (Target_i386): Remove unused member dynbss_.
- * arm.cc (Target_arm): Likewise.
- * powerpc.cc (Target_powerpc): Likewise.
- * sparc.cc (Target_sparc): Likewise.
- * tilegx.cc (Target_tilegx): Likewise.
- * x86_64.cc (Target_x86_64): Likewise.
- * dwarf_reader.h (Dwarf_info_reader): Remove unused members
- type_signature_, type_offset_.
- * plugin.h (Plugin_hook): Remove unused member layout_.
- * readsyms.h (Add_symbols): Remove unused members dirpath_, dirindex_,
- mapfile_.
- (Read_member): Remove unused members input_objects_, symtab_,
- mapfile_, layout_.
- (Check_library): Remove unused member symtab_.
- * archive.h (Lib_group): Remove unused member lib_.
- * archive.cc (Lib_group::Lib_group): Update initializer.
- * incremental.h (Incremental_binary): Remove unused member target_.
- (Incremental_script_entry): Removed unused member script_.
- * layout.h (Write_symbols_task): Remove unused member input_objects_.
- * icf.h (Icf): Remove unused member num_tracked_relocs.
- * gold-threads.h (Once): Conditionalize member was_run_lock_ on
- [ENABLE_THREADS && __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4], matching
- its only use.
- * gold-threads.cc (Once::Once): Likewise conditionalize initializer.
- * archive.h: Use struct rather than class for forward declaration
- of Read_symbols_data.
- 2013-10-07 Cary Coutant <ccoutant@google.com>
- PR gold/16010
- * testsuite/Makefile.am (icf_test): Fix dependencies.
- (icf_safe_test): Likewise.
- (icf_safe_so_test): Likewise.
- (large_symbol_alignment): Add empty _LDADD rule.
- * testsuite/Makefile.in: Regenerate.
- 2013-09-03 Pavel Chupin <pavel.v.chupin@intel.com>
- PR gold/15927
- * x86_64.cc (Target_x86_64<size>::Scan::global): Use relative
- relocation for R_X86_64_32 on x32.
- 2013-08-27 Roland McGrath <mcgrathr@google.com>
- * output.cc (Output_segment::set_section_addresses): Take new
- Target* argument. If target->isolate_execinstr() and the segment
- is executable and starts at a target->abi_pagesize() boundary,
- pad its end out to a target->abi_pagesize() boundary with code fill.
- * output.h (Output_segment::set_section_addresses): Update decl.
- * layout.h (Layout::check_output_data_for_reset_values): Take new
- argument RELAX_OUTPUTS.
- (Layout): New member relax_output_list_.
- (Layout::add_relax_output): New method.
- * layout.cc (Layout::Layout): Update constructor.
- (Layout::reset_relax_output): New method.
- (Layout::clean_up_after_relaxation): Call it.
- (Layout::prepare_for_relaxation): Update caller.
- (Layout::set_segment_offsets): Update callers of set_section_addresses.
- Call reset_relax_output before re-processing segments for
- isolate_execinstr case.
- (Layout::write_data): Handle relax_output_list_.
- (Layout::Relaxation_debug_check::check_output_data_for_reset_values):
- Take new argument RELAX_OUTPUTS. Assert it's an empty collection.
- 2013-08-23 Yuri Chornoivan <yurchor@ukr.net>
- PR binutils/15834
- * object.h: Fix typos.
- 2013-08-16 Roland McGrath <mcgrathr@google.com>
- * i386.cc (Target_i386_nacl::do_code_fill): New virtual function.
- * x86_64.cc (Target_x86_64_nacl::do_code_fill): New virtual function.
- 2013-08-07 Cary Coutant <ccoutant@google.com>
- Revert support for v2 DWP files:
- 2013-03-01 Cary Coutant <ccoutant@google.com>
- Add dwp support for v2 DWARF package file format.
- * dwarf_reader.cc (Dwarf_info_reader::visit_type_unit): Add
- tu_length parameter. Adjust all callers.
- * dwarf_reader.h (Dwarf_info_reader::visit_type_unit): Likewise.
- * dwp.cc: Include dwarf.h.
- (Section_bounds): New struct type.
- (Unit_set): New struct type.
- (Dwo_file::Dwo_file): Initialize new data member.
- (Dwo_file::read_compunit_index, Dwo_file::read_typeunit_index):
- Combine and rename to...
- (Dwo_file::read_unit_index): ...this.
- (Dwo_file::sized_read_compunit_index)
- (Dwo_file::sized_read_typeunit_index): Combine and rename to...
- (Dwo_file::sized_read_unit_index): ...this.
- (Dwo_file::copy_section): Remove section_name, is_str_offsets
- parameters; add section_id parameter.
- (Dwo_file::add_cu_set, Dwo_file::add_tu_set): Combine and rename to...
- (Dwo_file::add_unit_set): ...this.
- (Dwo_file::shndx_map_): Remove.
- (Dwo_file::sect_offsets_): New data member.
- (Dwp_output_file::Dwp_output_file): Initialize new data members.
- (Dwp_output_file::add_section): Rename to...
- (Dwp_output_file::add_contribution): ...this.
- (Dwp_output_file::add_cu_set): Combine parameters into a struct.
- (Dwp_output_file::add_tu_set): Likewise.
- (Dwp_output_file::Contribution): New type.
- (Dwp_output_file::Section::contributions): New data member.
- (Dwp_output_file::Cu_or_tu_set): Remove.
- (Dwp_output_file::Section::Section): New ctor.
- (Dwp_output_file::Dwp_index::Shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::Section_table): New type.
- (Dwp_output_file::Dwp_index::Dwp_index): Initialize new data members.
- (Dwp_output_file::Dwp_index::enter_set): Change type of "set"
- parameter.
- (Dwp_output_file::Dwp_index::shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::shndx_pool_end): Remove.
- (Dwp_output_file::Dwp_index::section_table): New member function.
- (Dwp_output_file::Dwp_index::section_table_end): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_size): Remove.
- (Dwp_output_file::Dwp_index::section_table_rows): New member function.
- (Dwp_output_file::Dwp_index::section_table_cols): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_): Remove.
- (Dwp_output_file::Dwp_index::section_table_): New data member.
- (Dwp_output_file::Dwp_index::section_mask_): New data member.
- (Dwp_output_file::add_output_section): New member function.
- (Dwp_output_file::write_new_section): New member function.
- (Dwp_output_file::write_contributions): New member function.
- (Dwp_output_file::section_id_map_): New data member.
- (class Dwo_id_info_reader): Remove.
- (class Unit_reader): New class.
- (get_dwarf_section_name): New function.
- (Dwo_file::read_executable): Adjust initializations of class data.
- (Dwo_file::read): Add support for v2 package file format.
- (Dwo_file::read_unit_index): Likewise.
- (Dwo_file::sized_read_unit_index): Likewise.
- (Dwo_file::copy_section): Likewise.
- (Dwo_file::add_unit_set): Likewise.
- (Dwp_output_file::add_output_section): Likewise.
- (Dwp_output_file::add_contribution): Likewise.
- (Dwp_output_file::Dwp_index::find_or_add): Use row index to check
- for empty slot.
- (Dwp_output_file::Dwp_index::enter_set): Add support for v2 package
- file format.
- (Dwp_output_file::Dwp_index::grow): Use row index to check for empty
- slot.
- (Dwp_output_file::initialize): Remove unused function.
- (Dwp_output_file::finalize): Add support for v2 package file format.
- (Dwp_output_file::write_index): Likewise.
- * gdb-index.cc (Gdb_index_info_reader::visit_type_unit): Adjust
- function prototype.
- 2013-07-31 Cary Coutant <ccoutant@google.com>
- * object.cc (Sized_relobj::do_output_section_address): New function.
- (Sized_relobj): Instantiate explicitly.
- * object.h (Object::output_section_address): New function.
- (Object::do_output_section_address): New function.
- (Sized_relobj::do_output_section_address): New function.
- * powerpc.cc (Target_powerpc::symval_for_branch): Use it.
- 2013-07-30 Cary Coutant <ccoutant@google.com>
- Sasa Stankovic <Sasa.Stankovic@imgtec.com>
- * parameters.cc (Parameters::entry): Return target-specific entry
- symbol name.
- * target.h (Target::entry_symbol_name): New function.
- (Target_info::entry_symbol_name): New data member.
- * arm.cc (Target_arm::arm_info): Add entry_symbol_name.
- * i386.cc (Target_i386::i386_info): Likewise.
- (Target_i386_nacl::i386_nacl_info): Likewise.
- * sparc.cc (Target_sparc::sparc_info): Likewise.
- * tilegx.cc (Target_tilegx::tilegx_info): Likewise.
- * x86_64.cc: (Target_x86_64::x86_64_info) Likewise.
- (Target_x86_64_nacl::x86_64_nacl_info) Likewise.
- * testsuite/testfile.cc (Target_test::test_target_info): Likewise.
- 2013-07-22 Sterling Augustine <saugustine@google.com>
- * dwarf_reader.cc (Dwarf_pubnames_table::read_section):
- Convert parameter shndx to local variable. Add parameters symtab
- and symtab_size. Scan over section names. Find relocation
- section corresponding to current section. Create and initialize
- reloc_mapper_ and reloc_type_.
- (Dwarf_pubnames_table::read_header): Add assertion. Change
- unit_length to off_t. Initialize member unit_length_. Fill in field
- cu_offset_.
- * dwarf_reader.h (Dwarf_pubnames_table::Dwarf_pubnames_table):
- Initialize new fields unit_length_ and cu_offset_.
- (Dwarf_pubnames_table::read_section): Update prototype.
- (Dwarf_pubnames_table::cu_offset): New member function.
- (Dwarf_pubnames_table::subsection_size): Likewise.
- (Dwarf_pubnames_table::cu_offset_, Dwarf_pubnames_table::unit_length):
- New fields.
- (Dwarf_info_reader::symtab, Dwarf_info_reader::symtab_size): Make
- member functions public.
- * gdb_index.cc (Gdb_index_info_reader::read_pubnames_and_pubtypes):
- Update comment. Rework logic. Move repeated parts to...
- (Gdb_index_info_reader::read_pubtable): ...here. New function.
- (Gdb_index::Gdb_index): Initialize new fields, pubnames_table_,
- pubtypes_table_, and stmt_list_offset.
- (Gdb_index::map_pubtable_to_dies, Gdb_index::find_pubname_offset,
- Gdb_index::find_pubtype_offset,
- Gdb_index::map_pubnames_and_types_to_dies): Define new functions.
- (Gdb_index::pubnames_read): Update prototype and rework logic.
- * gdb_index.h (Gdb_index_info_reader, Dwarf_pubnames_table):
- Forward declare.
- (Gdb_index::map_pubtable_to_dies, Gdb_index::find_pubname_offset,
- Gdb_index::find_pubtype_offset, Gdb_index::pubnames_table)
- Gdb_index::pubtypes_table, Gdb_index::map_pubnames_and_types_to_dies,
- Gdb_index::map_pubtable_to_dies):
- Declare functions.
- (Gdb_index::pubnames_read): Update declaration.
- (Gdb_index::Pubname_offset_map): New type.
- (Gdb_index::cu_pubname_map_, Gdb_index::cu_pubtype_map_,
- Gdb_index::pubnames_table_, Gdb_index::pubtypes_table_,
- Gdb_index::stmt_list_offset): Declare.
- (Gdb_index::pubnames_shndx_, Gdb_index::pubnames_offet_,
- Gdb_index::pubtypes_object_, Gdb_index::pubtypes_shndx_)
- Gdb_index::pubtypes_offset_): Remove.
- 2013-07-19 Roland McGrath <mcgrathr@google.com>
- * options.h (General_options): Add -Trodata-segment option.
- * parameters.cc (Parameters::check_rodata_segment): New function.
- (Parameters::set_target_once): Call it.
- * parameters.h (Parameters): Declare it (private member function).
- * layout.cc (load_seg_unusable_for_headers): New function, broken
- out of Layout::relaxation_loop_body. If TARGET->isolate_execinstr()
- then validate rodata segment rather than text segment.
- (relaxation_loop_body): Call that.
- (is_text_segment): New function. Don't admit a non-executable
- segment if TARGET->isolate_execinstr().
- (set_segment_offsets): Call it. Honor -Trodata-segment option.
- 2013-07-15 Shawn Landden <shawnlandden@gmail.com>
- PR gold/15070
- * fileread.h (File_read::get_view): Clarify comment about ALIGNED.
- * nacl.h (Sniff_file::View::View): Request aligned view.
- 2013-07-11 Cary Coutant <ccoutant@google.com>
- * powerpc.cc (Target_powerpc::write_branch_lookup_table): Use
- correct BRLT entry size.
- 2013-07-03 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Relocate::relocate): Update self-call
- comment.
- 2013-07-01 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_ranges_table::read_ranges_table): Save
- reloc_type_.
- (Dwarf_ranges_table::read_range_list): Call lookup_reloc.
- (Dwarf_ranges_table::lookup_reloc): New function.
- * dwarf_reader.h (Dwarf_ranges_table::Dwarf_ranges_table): Initialize
- reloc_type_.
- (Dwarf_ranges_table::lookup_reloc): New function.
- (Dwarf_ranges_table::reloc_type_): New data member.
- 2013-06-27 Jing Yu <jingyu@google.com>
- PR gold/15662
- * powerpc.cc (Output_data_brlt_powerpc::reset_brlt_sizes): New
- function.
- (Output_data_brlt_powerpc::finalize_brlt_sizes): New function.
- (Target_powerpc::do_relax): Call the above.
- 2013-06-27 Cary Coutant <ccoutant@google.com>
- * powerpc.cc (Target_powerpc::symval_for_branch): Don't assert
- on garbage collected .opd section.
- 2013-06-27 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::do_gc_add_reference): Test dst_shndx
- is non-zero.
- (Target_powerpc::do_gc_mark_symbols): Likewise for sym->shndx().
- (Target_powerpc::do_function_location): Likewise for loc->shndx.
- 2013-06-14 Cary Coutant <ccoutant@google.com>
- * resolve.cc (Symbol::override_base): Don't override st_type
- from plugin placeholder symbols.
- (Symbol_table::resolve): Likewise.
- (Symbol_table::should_override): Don't complain about TLS mismatch
- if the TO symbol is a plugin placeholder.
- * testsuite/Makefile.am (plugin_test_tls): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test_tls.sh: New test script.
- * testsuite/two_file_test_2_tls.cc: New test source.
- * testsuite/two_file_test_tls.cc: New test source.
- 2013-06-05 Alexander Ivchenko <alexander.ivchenko@intel.com>
- * layout.cc (Layout::set_segment_offsets): Taking care of the case when
- the maximum segment alignment is larger than the page size.
- * testsuite/Makefile.am (large_symbol_alignment): Test that Gold
- correctly aligns the symbols with large alignemnt.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/large_symbol_alignment.cc: New file.
- 2013-05-30 Alexander Ivchenko <alexander.ivchenko@intel.com>
- Sriraman Tallam <tmsriram@google.com>
- * options.h (sort_section): New option.
- * output.h (Input_section_sort_section_prefix_special_ordering_compare):
- Rename from Input_section_sort_section_name_special_ordering_compare.
- (Input_section_sort_section_name_compare): New struct.
- * output.cc (Output_section::Input_section_sort_section_name_compare::
- operator()): New function.
- (Output_section::sort_attached_input_sections): Use new sort function
- for .text if --sort-section=name is specified.
- * layout.cc (Layout::make_output_section):
- Add sorting by name when --sort-section=name is specified.
- * testsuite/Makefile.am (text_section_grouping): Test option
- --sort-section=name.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/section_sorting_name.cc: New file.
- * testsuite/section_sorting_name.sh: New file.
- 2013-05-21 Cary Coutant <ccoutant@google.com>
- * symtab.h (Symbol::is_cxx_vtable): New function.
- * target-reloc.h (relocate_section): Check for vtable symbol.
- * testsuite/Makefile.am (missing_key_func.sh): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/missing_key_func.cc: New test source.
- * testsuite/missing_key_func.sh: New test script.
- 2013-05-21 Cary Coutant <ccoutant@google.com>
- * object.cc (Sized_relobj_file::get_symbol_location_info): Set
- type of enclosing symbol.
- (Relocate_info::location): Check symbol type when describing symbol.
- * object.h (Symbol_location_info): Remove unused line_number;
- add enclosing_symbol_type.
- * testsuite/debug_msg.sh: Adjust expected output.
- 2013-05-13 Cary Coutant <ccoutant@google.com>
- * configure.ac: Export DEFAULT_TARGET.
- * configure: Regenerate.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.am: Add .EXPORT_ALL_VARIABLES.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/debug_msg.sh: Delete duplicate tests.
- Don't check undef_int error message match for powerpc where the
- source file and line number aren't available.
- 2013-05-10 Roland McGrath <mcgrathr@google.com>
- * options.h (General_options): Add --rosegment-gap option.
- * options.cc (finalize): --rosegment-gap implies --rosegment.
- * layout.cc (set_segment_offsets): Let user option override
- target->rosegment_gap().
- 2013-05-10 Roland McGrath <mcgrathr@google.com>
- * options.h (General_options): Remove leading space from help
- messages for -nostdlib and --rosegment.
- 2013-05-03 Maciej W. Rozycki <macro@codesourcery.com>
- PR ld/15365
- * layout.cc (Layout::finalize): Make __ehdr_start STV_HIDDEN.
- 2013-05-03 Alan Modra <amodra@gmail.com>
- * merge.cc (Output_merge_string::do_add_input_section): Correct
- scan for number of strings. Rename vars to avoid shadowing.
- Include missing terminator in input_size_.
- 2013-05-01 H.J. Lu <hongjiu.lu@intel.com>
- * merge.cc (Output_merge_string<Char_type>::do_add_input_section):
- Restore empty string handling.
- 2013-05-01 Cary Coutant <ccoutant@google.com>
- * stringpool.cc (Stringpool_template::new_key_offset): Fix
- uninitialized warning.
- 2013-04-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
- * output.cc (Output_section::add_merge_input_section): Allow
- to merge sections if the alignment is more than character size.
- * merge.h (Output_merge_string::Output_merge_string): Remove
- assert.
- * merge.cc (Output_merge_string<Char_type>::do_add_input_section): Count
- only not-null strings. Check the alignment of strings.
- * stringpool.h
- (Stringpool_template<Stringpool_char>::Stringpool_template): Add
- alignment as the argument.
- (Stringpool_template<Stringpool_char>::addralign_): New class member.
- * stringpool.cc (Stringpool_template<Stringpool_char>::new_key_offset):
- Align non-zero length strings according to the addralign_.
- (Stringpool_template<Stringpool_char>::set_string_offsets):
- Updating offsets according to the given alignment.
- * testsuite/Makefile.am (text_section_grouping): Test if string
- literals are getting merged.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/merge_string_literals_1.c: New file.
- * testsuite/merge_string_literals_2.c: Ditto.
- * testsuite/merge_string_literals.sh: Ditto.
- 2013-04-26 Ian Lance Taylor <iant@google.com>
- * target-reloc.h (relocate_section): If the reloc offset is out of
- range, pass VIEW as NULL to relocate.relocate.
- * arm.cc (Target_arm:Relocate::relocate): Check for a NULL view.
- * i386.cc (Target_i386::Relocate::relocate): Likewise.
- * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
- * sparc.cc (Target_sparc::Relocate::relocate): Likewise.
- * tilegx.cc (Target_tilegx::Relocate::relocate): Likewise.
- * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
- 2013-04-26 Geoff Pike <gpike@chromium.org>
- * gold.cc (queue_final_tasks): invoke layout->queue_build_id_tasks().
- * layout.cc (Hash_task): New class.
- (Layout::queue_build_id_tasks): New function.
- (Layout::write_build_id): Handle single-thread portion of build ID
- computation. (In some cases, all of it is single-threaded.) Replace
- {sha1,md5}_process_bytes with {sha1,md5}_buffer to get the same
- functionality in fewer lines of code.
- * layout.h (Layout::queue_build_id_tasks): New function declaration.
- * options.h (General_options): make "--build-id" default to tree
- rather than sha1. Add two new options related to --build-id=tree:
- --build-id-chunk-size-for-treehash and
- --build-id-min-file-size-for-treehash.
- * Makefile.am: add testing of --build-id=tree and related new options
- (these tests will be invoked by "make check").
- * Makefile.in: Regenerate.
- 2013-04-25 Alan Modra <amodra@gmail.com>
- * configure.tgt: Add powerpcle and powerpc64le.
- 2013-04-22 Alan Modra <amodra@gmail.com>
- PR gold/15355
- * layout.cc (Layout::segment_precedes): Allow more than one
- segment with the same type and flags.
- 2013-04-15 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::set_relocatable_section_offsets): Don't
- allocate space in file for BSS sections.
- 2013-04-15 Cary Coutant <ccoutant@google.com>
- * script-sections.cc (Orphan_output_section): Reset address
- to zero after each orphaned section for relocatable links.
- 2013-04-15 Cary Coutant <ccoutant@google.com>
- * symtab.cc (Symbol_table::sized_write_globals): Subtract
- section starting address for relocatable link.
- * testsuite/Makefile.am (script_test_11): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/script_test_11.c: New source file.
- * testsuite/script_test_11.t: New linker script.
- 2013-04-13 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Stub_control::can_add_to_stub_group): Don't set
- owner when sections are not adjacent and exceed group size.
- (Target_powerpc::group_sections): Handle corner case.
- (Target_powerpc::Branch_info::make_stub): Handle case where
- stub table doesn't exist due to branches in non-exec sections.
- (Target_powerpc::Relocate::relocate): Likewise.
- 2013-04-11 Alan Modra <amodra@gmail.com>
- PR gold/15354
- * powerpc.cc (Target_powerpc::make_brlt_section): Name section
- .branch_lt to match bfd ld. Adjust comments throughout file.
- 2013-04-04 Ian Lance Taylor <iant@google.com>
- GCC PR c++/56840
- * object.cc (do_layout_deferred_sections): Handle .eh_frame
- sections before checking whether they are included in the link.
- 2013-03-29 Sriraman Tallam <tmsriram@google.com>
- * archive.cc (Archive::get_elf_object_for_member): Create the elf
- object before calling the plugin claim_file handler. Pass the elf
- object of the archive to the plugin. Delete the elf object if the
- plugin claims the file.
- 2013-03-21 Alan Modra <amodra@gmail.com>
- * layout.cc (Layout::set_segment_offsets): Accept writable .text
- segment when omagic.
- 2013-03-21 Alan Modra <amodra@gmail.com>
- * dwp.cc (Dwp_output_file::add_contribution): Avoid signed/unsigned
- comparison warning.
- * layout.cc (Layout::create_dynamic_symtab): Avoid "may be used
- uninitialized" warning.
- 2013-03-20 Alan Modra <amodra@gmail.com>
- * symtab.h (Symbol::clear_version): New function.
- * symtab.cc (Symbol_table::set_dynsym_indexes): Don't set object
- is_needed by weak references. Clear version for symbols defined
- in as-needed objects that are not needed.
- 2013-03-15 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Make
- static and public. Add report_err param. Return false for data refs.
- (Target_powerpc::rela_dyn_section): New overloaded function.
- (Target_powerpc::plt_, iplt_): Elucidate.
- (Output_data_plt_powerpc::entry_count): Handle current_data_size()==0.
- (Output_data_plt_powerpc::do_write): Don't write .iplt.
- (Output_data_plt_powerpc::plt_entry_count): Don't add .iplt entries.
- (Target_powerpc::Scan::local, global): Adjust reloc_needs_plt_for_ifunc
- calls. Put ifunc dynamic relocs in irela_dyn_section. Only
- push_branch and make_plt_entry for ifunc syms when
- reloc_needs_plt_for_ifunc.
- (Target_powerpc::Relocate::relocate): Don't use plt entry value
- for ifunc unless reloc_needs_plt_for_ifunc.
- 2013-03-15 Alan Modra <amodra@gmail.com>
- * gc.h (gc_process_relocs): Don't look through function descriptors.
- * icf.cc (get_section_contents): Do so here instead.
- 2013-03-13 Alan Modra <amodra@gmail.com>
- * powerpc.cc (is_branch_reloc): Forward declare.
- (Target_powerpc::do_can_check_for_function_pointers): New predicate.
- (Target_powerpc::Scan::local_reloc_may_be_function_pointer): Return
- false for 64-bit, true for 32-bit non-branch relocs.
- (Target_powerpc::Scan::global_reloc_may_be_function_pointer): Likewise.
- * testsuite/Makefile.am (icf_test): Use linker map file instead of
- nm output.
- (icf_safe_test): Generate linker map file as well as nm output.
- (icf_safe_so_test): Likewise.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/icf_test.sh: Parse linker map file to determine
- section folding.
- * testsuite/icf_safe_test.sh: Likewise. Expect folding for PowerPC.
- * testsuite/icf_safe_so_test.sh: Likewise.
- (X86_32_or_ARM_specific_safe_fold): Merge into..
- (arch_specific_safe_fold): ..this.
- (X86_64_specific_safe_fold): Delete unused function.
- 2013-03-12 Alan Modra <amodra@gmail.com>
- * gc.h (gc_process_relocs): Look through function descriptors
- to determine shndx, symvalue and addend used by ICF. Tidy
- variable duplication.
- 2013-03-11 Alan Modra <amodra@gmail.com>
- * gold.cc (queue_middle_tasks): Move detect_odr_violations..
- * layout.cc (Layout_task_runner::run): ..to here.
- * symtab.h (struct Symbol_location): Extract from..
- (class Symbol_table): ..here.
- * symtab.cc (Symbol_table::linenos_from_loc): Invoke function_location.
- * target.h (class Target): Add function_location and
- do_function_location functions.
- (class Sized_target): Add do_function_location.
- * object.h (class Sized_relobj_file): Move find_shdr..
- (class Object): ..to here.
- * object.cc: Likewise. Update to suit. Instantiate.
- (Sized_relobj_file::find_eh_frame): Update find_shdr call.
- * powerpc.cc (class Powerpc_dynobj): New.
- (Target_powerpc::do_function_location): New function.
- (Powerpc_relobj::do_find_special_sections): Update find_shdr call.
- (Powerpc_dynobj::do_read_symbols): New function.
- (Target_powerpc::do_make_elf_object): Make a Powerpc_dynobj.
- 2013-03-08 Ian Lance Taylor <iant@google.com>
- * options.cc (General_options::string_to_object_format): Accept
- "default".
- 2013-03-08 Alan Modra <amodra@gmail.com>
- * ehframe.h (Post_fdes) Make it a vector of Post_fde rather than
- pointer to Post_fde.
- (struct Post_fde): Move definition to here..
- * ehframe.cc (struct Post_fde): ..from here.
- (Cie::write): Don't alloc Post_fde.
- (Eh_frame::do_sized_write): Update. Don't free Post_fde.
- 2013-03-07 Alan Modra <amodra@gmail.com>
- * testsuite/discard_locals_relocatable_test.c: Add a powerpc
- relocation referencing .LC0.
- * testsuite/discard_locals_test.sh: Remove FIXMEs.
- 2013-03-07 Alan Modra <amodra@gmail.com>
- * testsuite/ifunc-sel.h (ifunc_sel, ifunc_one): Mark
- always_inline. Add assembly for powerpc to avoid GOT.
- 2013-03-07 Alan Modra <amodra@gmail.com>
- * testsuite/script_test_10.sh: Don't test .bss section
- header number.
- 2013-03-06 Alan Modra <amodra@gmail.com>
- * powerpc.cc (class Powerpc_relobj): Move some member functions.
- (Target_powerpc::symval_for_branch): Add symtab param. Update
- all callers. Handle folded sections.
- (Target_powerpc::do_gc_add_reference): Don't cast dynamic object
- to Powerpc_relobj.
- (Global_symbol_visitor_opd::operator()): Likewise.
- 2013-03-04 Alan Modra <amodra@gmail.com>
- * testsuite/Makefile.am (final_layout_script.lds): Add .sbss.
- * testsuite/Makefile.in: Regenerate.
- 2013-03-01 Cary Coutant <ccoutant@google.com>
- Add dwp support for v2 DWARF package file format.
- * dwarf_reader.cc (Dwarf_info_reader::visit_type_unit): Add
- tu_length parameter. Adjust all callers.
- * dwarf_reader.h (Dwarf_info_reader::visit_type_unit): Likewise.
- * dwp.cc: Include dwarf.h.
- (Section_bounds): New struct type.
- (Unit_set): New struct type.
- (Dwo_file::Dwo_file): Initialize new data member.
- (Dwo_file::read_compunit_index, Dwo_file::read_typeunit_index):
- Combine and rename to...
- (Dwo_file::read_unit_index): ...this.
- (Dwo_file::sized_read_compunit_index)
- (Dwo_file::sized_read_typeunit_index): Combine and rename to...
- (Dwo_file::sized_read_unit_index): ...this.
- (Dwo_file::copy_section): Remove section_name, is_str_offsets
- parameters; add section_id parameter.
- (Dwo_file::add_cu_set, Dwo_file::add_tu_set): Combine and rename to...
- (Dwo_file::add_unit_set): ...this.
- (Dwo_file::shndx_map_): Remove.
- (Dwo_file::sect_offsets_): New data member.
- (Dwp_output_file::Dwp_output_file): Initialize new data members.
- (Dwp_output_file::add_section): Rename to...
- (Dwp_output_file::add_contribution): ...this.
- (Dwp_output_file::add_cu_set): Combine parameters into a struct.
- (Dwp_output_file::add_tu_set): Likewise.
- (Dwp_output_file::Contribution): New type.
- (Dwp_output_file::Section::contributions): New data member.
- (Dwp_output_file::Cu_or_tu_set): Remove.
- (Dwp_output_file::Section::Section): New ctor.
- (Dwp_output_file::Dwp_index::Shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::Section_table): New type.
- (Dwp_output_file::Dwp_index::Dwp_index): Initialize new data members.
- (Dwp_output_file::Dwp_index::enter_set): Change type of "set"
- parameter.
- (Dwp_output_file::Dwp_index::shndx_pool): Remove.
- (Dwp_output_file::Dwp_index::shndx_pool_end): Remove.
- (Dwp_output_file::Dwp_index::section_table): New member function.
- (Dwp_output_file::Dwp_index::section_table_end): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_size): Remove.
- (Dwp_output_file::Dwp_index::section_table_rows): New member function.
- (Dwp_output_file::Dwp_index::section_table_cols): New member function.
- (Dwp_output_file::Dwp_index::shndx_pool_): Remove.
- (Dwp_output_file::Dwp_index::section_table_): New data member.
- (Dwp_output_file::Dwp_index::section_mask_): New data member.
- (Dwp_output_file::add_output_section): New member function.
- (Dwp_output_file::write_new_section): New member function.
- (Dwp_output_file::write_contributions): New member function.
- (Dwp_output_file::section_id_map_): New data member.
- (class Dwo_id_info_reader): Remove.
- (class Unit_reader): New class.
- (get_dwarf_section_name): New function.
- (Dwo_file::read_executable): Adjust initializations of class data.
- (Dwo_file::read): Add support for v2 package file format.
- (Dwo_file::read_unit_index): Likewise.
- (Dwo_file::sized_read_unit_index): Likewise.
- (Dwo_file::copy_section): Likewise.
- (Dwo_file::add_unit_set): Likewise.
- (Dwp_output_file::add_output_section): Likewise.
- (Dwp_output_file::add_contribution): Likewise.
- (Dwp_output_file::Dwp_index::find_or_add): Use row index to check
- for empty slot.
- (Dwp_output_file::Dwp_index::enter_set): Add support for v2 package
- file format.
- (Dwp_output_file::Dwp_index::grow): Use row index to check for empty
- slot.
- (Dwp_output_file::initialize): Remove unused function.
- (Dwp_output_file::finalize): Add support for v2 package file format.
- (Dwp_output_file::write_index): Likewise.
- * gdb-index.cc (Gdb_index_info_reader::visit_type_unit): Adjust
- function prototype.
- 2013-03-01 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_info_reader::check_buffer): Move
- function into class definition in header file.
- (Dwarf_info_reader::warn_corrupt_debug_section): New function.
- * dwarf_reader.h (Dwarf_info_reader::warn_corrupt_debug_section):
- New function.
- (Dwarf_info_reader::check_buffer): Move here from .cc file.
- 2013-02-28 Alan Modra <amodra@gmail.com>
- * target.h (Target::plt_fde_location, do_plt_fde_location): Declare.
- * target.cc (Target::do_plt_fde_location): New function.
- * ehframe.h (class FDE): Add post_map field to u_.from_linker,
- accessor function, and constructor param.
- (struct Post_fde, Post_fdes): Declare.
- (Cie::write): Add post_fdes param.
- * ehframe.cc (Fde::write): Use plt_fde_location.
- (struct Post_fde): Define.
- (Cie::write): Stash FDEs added post merge mapping.
- (Eh_frame::add_ehframe_for_plt): Assert no new CIEs after mapping.
- Adjust Fde constructor call. Bump final_data_size_ for post map FDEs.
- (Eh_frame::do_sized_write): Arrange to write post map FDES after
- other FDEs.
- * powerpc.cc (Target_powerpc::do_plt_fde_location): New function.
- (Target_powerpc::has_glink): New function.
- (Target_powerpc::do_relax): Add eh_frame info for stubs.
- (struct Eh_cie, eh_frame_cie, glink_eh_frame_fde_64,
- glink_eh_frame_fde_32, default_fde): New data.
- (Stub_table::eh_frame_added_): New var.
- (Stub_table::find_long_branch_entry, stub_address, stub_offset):
- Make const.
- (Stub_table::add_eh_frame): New function.
- (Output_data_glink::add_eh_frame): New function.
- (Target_powerpc::make_glink_section): Call add_eh_frame.
- 2013-02-15 Ian Lance Taylor <iant@google.com>
- * options.h (DEFINE_uint64_alias): Define.
- (class General_options): Add -Ttext-segment as an alias for
- -Ttext.
- 2013-02-15 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Stub_table::plt_off): New function, extracted from..
- (Stub_table::do_write): ..here, two places.
- (Stub_table::plt_call_size): Use it here too.
- 2013-02-11 Ian Lance Taylor <iant@google.com>
- * descriptors.cc (Descriptors::close_all): New function.
- * descriptors.h (class Descriptors): Declare close_all.
- (close_all_descriptors): New inline function.
- * plugin.cc: Include "descriptors.h".
- (Plugin_manager::cleanup): Call close_all_descriptors.
- 2013-02-06 Alan Modra <amodra@gmail.com>
- * README: Update coding style link.
- 2013-01-28 Cary Coutant <ccoutant@google.com>
- * dwp.cc (File_list): New typedef.
- (Dwo_name_info_reader): New class.
- (Dwo_id_info_reader::Dwo_id_info_reader): Remove unused parameters.
- (Dwo_id_info_reader::visit_top_die): Remove unused member function.
- (Dwo_file::~Dwo_file): Delete input_file_ after obj_.
- (Dwo_file::read_executable): New function.
- (Dwo_file::read): Move common setup code to ...
- (Dwo_file::make_object): ... here.
- (dwp_options): Add --exec/-e.
- (usage): Likewise.
- (main): Likewise.
- 2013-01-24 Sriraman Tallam <tmsriram@google.com>
- * layout.cc (Layout::layout): Check for option text_reorder.
- (Layout::make_output_section): Ditto.
- * options.h (text_reorder): New option.
- * output.cc (Input_section_sort_compare): Remove special ordering
- of section names.
- (Output_section::
- Input_section_sort_section_name_special_ordering_compare::
- operator()): New function.
- (Output_section::sort_attached_input_sections): Use new sort function
- for .text.
- * output.h (Input_section_sort_section_name_special_ordering_compare):
- New struct.
- * testsuite/Makefile.am (text_section_grouping): Test option
- --no-text-reorder
- * testsuite/Makefile.in: Regenerate.
- * testsuite/text_section_grouping.sh: Check order of functions without
- default text reordering.
- 2013-01-18 Mike Frysinger <vapier@gentoo.org>
- * options.h (General_options): Change default to true for new_dtags.
- 2013-01-18 Mike Frysinger <vapier@gentoo.org>
- * layout.cc (Layout::finish_dynamic_section): Only add DT_RPATH
- when enable_new_dtags is false. Only add DT_RUNPATH when
- enable_new_dtags is true.
- 2013-01-17 Serge Pavlov <serge.v.pavlov@gmail.com>
- * powerpc.cc (Stub_table::find_plt_call_entry): Make types
- used in declaration and definition consistent.
- (Target_powerpc::symval_for_branch): Ditto.
- 2013-01-16 Sriraman Tallam <tmsriram@google.com>
- * testsuite/plugin_final_layout.cc: Fix comment.
- 2013-01-16 Sriraman Tallam <tmsriram@google.com>
- * layout.cc (Layout::layout): Do not do default sorting for
- text sections when section ordering is specified.
- (make_output_section): Ditto.
- * testsuite/plugin_final_layout.cc: Name the function sections
- to catch reordering issues.
- 2013-01-15 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::do_relax): Default shared libs to
- plt-thread-safe.
- 2013-01-15 Alan Modra <amodra@gmail.com>
- * testsuite/Makefile.am (final_layout_script.lds): Handle .got section.
- * testsuite/Makefile.in: Regenerate.
- 2013-01-14 Alan Modra <amodra@gmail.com>
- * testsuite/Makefile.am (MOSTLYCLEANFILES): Add various output files.
- * testsuite/Makefile.in: Regenerate.
- 2013-01-11 Pavel Chupin <pavel.v.chupin@intel.com>
- PR bfd/14430
- Fix mingw gold build with plugins enabled
- * Makefile.am: Replace -ldl with @DLOPEN_LIBS@.
- * configure.ac: Export DLOPEN_LIBS and add headers check.
- * plugin.cc: Handle non-dlfcn case.
- * Makefile.in: Regenerate.
- * config.in: Regenerate.
- * configure: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2013-01-09 Sriraman Tallam <tmsriram@google.com>
- * output.h (sort_attached_input_sections): Change to be public.
- * script-sections.cc
- (Output_section_definition::set_section_addresses): Sort
- attached input sections according to section order before linker
- script assigns section addresses.
- (Orphan_output_section::set_section_addresses): Sort
- attached input sections according to section order before linker
- script assigns section addresses.
- * Makefile.am (final_layout.sh): Use a simple linker script to
- check if section ordering still works.
- * Makefile.in: Regenerate.
- 2013-01-09 Ben Cheng <bccheng@google.com>
- * arm.cc (Target_arm::attributes_accept_div): New function.
- (Target_arm::attributes_forbid_div): New function.
- (Target_arm::merge_object_attributes): Merge the Tag_DIV_use
- attribute using the same new functions as what bfd/elf32_arm.c
- does.
- 2013-01-07 Cary Coutant <ccoutant@google.com>
- PR gold/14993
- * output.cc (Output_section::add_input_section): For incremental
- updates, don't track input sections that are allocated from patch
- space.
- 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
- Ian Lance Taylor <iant@google.com>
- PR gold/14897
- * configure.ac (--enable-ld): Removed.
- (install_as_default): Set to yes only for --enable-gold=default
- or --disable-ld.
- * configure: Regenerated.
- 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
- * options.h (General_options): Add -fuse-ld= for GCC linker
- option compatibility.
- 2013-01-04 Cary Coutant <ccoutant@google.com>
- * configure.ac: Fix typo restoring CXXFLAGS.
- * configure: Regenerate.
- 2013-01-04 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (CXXLINK_S): New macro.
- (debug_msg_so.err, debug_msg_ndebug.err): Use CXXLINK_S.
- * testsuite/Makefile.in: Regenerate.
- 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
- * version.cc (print_version): Update copyright year to 2013.
- 2012-12-20 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::special_ordering_of_input_section): New
- function.
- (Layout::layout): If input section requires special ordering, must
- sort input sections.
- (Layout::make_output_section): May sort .text input sections.
- (Layout::is_section_name_prefix_grouped): Remove.
- * layout.h (class Layout): Declare
- special_ordering_of_input_section. Don't declare
- is_section_name_prefix_grouped.
- * output.cc (Output_section::add_input_section): Revert last
- change.
- (Output_section::Input_section_sort::match_file_name): Don't crash
- if called on output section data.
- (Output_section::Input_section_sort_compare): Sort based on
- special ordering.
- (Output_section::Input_section_sort_section_order_index_compare):
- Revert last patch.
- (Output_section::sort_attached_input_sections): Likewise.
- 2012-12-18 Sriraman Tallam <tmsriram@google.com>
- * layout.cc (Layout::is_section_name_prefix_grouped): New function.
- * layout.h (Layout::is_section_name_prefix_grouped): New function.
- * output.cc (Output_section::add_input_section): Check if section
- name contains special prefix. Keep input sections to sort such
- sections.
- (Output_section::Input_section_sort_section_order_index_compare
- ::operator()): Group sections according to prefixes.
- (Output_section::sort_attached_input_sections): Add condition to
- Input_section_entry constructor call.
- * testsuite/Makefile.am (text_section_grouping): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/text_section_grouping.cc: New file.
- * testsuite/text_section_grouping.sh: New file.
- 2012-12-17 Nick Clifton <nickc@redhat.com>
- * Makefile.am: Add copyright notice.
- * NEWS: Likewise.
- * README: Likewise.
- * configure.ac: Likewise.
- * ftruncate.c: Likewise.
- * Makefile.in: Regenerate.
- 2012-12-14 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (exception_separate_shared_12_test): Add
- --no-as-needed flag.
- (exception_separate_shared_12_test): Likewise.
- (incremental_copy_test): Likewise.
- * testsuite/Makefile.in: Regenerate.
- 2012-12-14 Cary Coutant <ccoutant@google.com>
- * dwp.cc (Dwp_output_file::add_cu_set): Check for duplicate CUs.
- (Dwp_output_file::Dwp_index::enter_set): Add assert.
- 2012-12-12 Alan Modra <amodra@gmail.com>
- * powerpc.cc (class Track_tls): New.
- (class Relocate, class Scan): Inherit Track_tls.
- (Target_powerpc::Scan::local, global): Track tls optimization
- and avoid creating plt entry for __tls_get_addr if all uses
- are optimized away.
- (Target_powerpc::Relocate::relocate): Update to use Track_tls.
- 2012-12-12 Alan Modra <amodra@gmail.com>
- * options.h (General_options): Add --toc-sort/--no-toc-sort.
- Replace no_toc_optimize with toc_optimize.
- * output.h (Output_section::input_sections): Provide non-const variant.
- * powerpc.cc (Powerpc_relobj::has_small_toc_reloc_,
- set_has_small_toc_reloc, has_small_toc_reloc): New variable and
- accessors.
- (Target_powerpc::Scan::local, global): Call set_has_small_toc_reloc.
- (class Sort_toc_sections): New.
- (Target_powerpc::do_finalize_sections): Sort toc sections.
- (Target_powerpc::Relocate::relocate): Update toc_optimize test.
- 2012-12-10 Roland McGrath <mcgrathr@google.com>
- * testsuite/binary_unittest.cc (read_all): New function.
- (Sized_binary_test): Use it instead of ::read.
- * fileread.cc (do_read): Don't assume pread always reads the whole
- amount in a single call.
- 2012-12-10 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_selector_powerpc::Target_selector_powerpc):
- Set EM_PPC64 or EM_PPC here.
- (Target_selector_powerpc::do_recognize): Delete.
- 2012-12-10 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::Powerpc_relobj): Init has14_ and
- stub_table_.
- (Target_powerpc::Branch_info::make_stub): Don't omit addend.
- 2012-12-07 Roland McGrath <mcgrathr@google.com>
- * testsuite/binary_unittest.cc (Sized_binary_test):
- Use open_descriptor rather than ::open.
- 2012-12-07 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Stub_table::do_write): Delete redundant Address
- typedef and invalid_address constant.
- (Output_data_glink, Stub_table, Target_powerpc): Explicitly
- instantiate constants.
- 2012-12-06 Roland McGrath <mcgrathr@google.com>
- * configure.ac (HAVE_ZLIB): Use AM_ZLIB instead of AC_SEARCH_LIBS.
- Use $ac_cv_header_zlib_h = yes as the condition in AM_CONDITIONAL.
- * aclocal.m4: Regenerate.
- * configure: Regenerate.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2012-12-07 Alan Modra <amodra@gmail.com>
- * options.h (General_options): Add no_toc_optimize.
- * powerpc.cc (ok_lo_toc_insn): New function.
- (Target_powerpc::Relocate::relocate): Optimize toc access sequences.
- 2012-12-06 Alan Modra <amodra@gmail.com>
- * options.h (General_options): Add plt_align, plt_static_chain,
- plt_thread_safe. Update stub_group_size help text.
- * powerpc.cc (Target_powerpc::plt_thread_safe): New access function
- for new plt_thread_safe_ var.
- (use_plt_offset): Correct comments.
- (Target_powerpc::do_relax): Look for thread creation symbols to
- determine default plt_thread_safe value. Clear plt call stubs
- as well as branch stubs each iteration.
- (add_2_2_11, add_12_12_11, bnectr_p4, cmpldi_2_0, xor_11_11_11): New
- insn constants.
- (l, hi, ha, write_insn): Move earlier.
- (Stub_table): Delete prev_size, add last_plt_size and last_branch_size.
- (Stub_table::clear_stubs): Rename from clear_long_branch_stubs, clear
- plt stubs too.
- (Stub_table::update_size): Adjust.
- (Stub_table::prev_size, set_prev_size): Delete.
- (Stub_table::stub_align): Let --plt-align affect result.
- (Stub_table::plt_call_size): Calculate sizes for various stubs.
- (Stub_table::branch_stub_size): Use last_plt_size in address calc.
- (Stub_table::add_plt_call_stub): Pass iterator to plt_call_size.
- (Stub_table::do_write): Support more stub variants.
- 2012-12-04 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::do_scan_relocs): Delete.
- (Target_powerpc::do_define_standard_symbols): New function.
- 2012-12-03 Alan Modra <amodra@gmail.com>
- * output.h: Formatting, whitespace.
- 2012-12-03 Alan Modra <amodra@gmail.com>
- * layout.h (Layout::get_executable_sections): Declare.
- * layout.cc (Layout::get_executable_sections): New function.
- * arm.cc (Target_arm::group_sections): Use it.
- (Arm_output_section::group_sections): Delete now redundant test.
- * output.cc (Output_reloc::Output_reloc): Add is_relative.
- param to handle relative relocs.
- * output.h (Output_reloc::Output_reloc <absolute reloc>): Likewise.
- (Output_data_reloc::add_absolute): Adjust.
- (Output_data_reloc::add_relative): New function.
- (Output_data::reset_data_size): New function.
- (Output_relaxed_input_section::set_relobj, set_shndx): New functions.
- (Output_section::set_addralign): New function.
- (Output_section::checkpoint_set_addralign): New function.
- (Output_section::clear_section_offsets_need_adjustment): New function.
- (Output_section::input_sections): Make public.
- * powerpc.cc (class Output_data_brlt_powerpc): New.
- (class Stub_table, class Stub_control): New.
- (Powerpc_relobj::has14_, set_has_14bit_branch, has_14bit_branch,
- stub_table_, set_stub_table, stub_table): New vectors and accessor
- functions.
- (Target_powerpc::do_may_relax, do_relax, push_branch,
- new_stub_table, stub_tables, brlt_section, group_sections,
- add_branch_lookup_table, find_branch_lookup_table,
- write_branch_lookup_table, make_brlt_section): New functions.
- (Target_powerpc::struct Sort_sections, class Branch_info): New.
- (Target_powerpc::brlt_section_, stub_tables_, branch_lookup_table_,
- branch_info_): New vars.
- (Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Don't
- make call stubs here.
- (Output_data_glink): Remove all call stub handling from this class.
- (Target_powerpc::Scan::local, global): Save interesting branch
- relocs and relocs for ifunc. Adjust calls to plt entry functions.
- (Target_powerpc::do_finalize_sections): Only make reg save/restore
- functions on final link.
- (Target_powerpc::Relocate::relocate): Adjust lookup of call stubs.
- Handle long branch destinations too.
- (Target_powerpc::do_dynsym_value, do_plt_address_for_global,
- do_plt_address_for_local): Adjust lookup of plt call stubs.
- 2012-11-30 Alan Modra <amodra@gmail.com>
- * powerpc.c (Target_powerpc::Scan::global): Don't emit relative
- relocs against protected symbols when building 32-bit shared libs.
- 2012-11-30 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::make_plt_section): Add symtab
- param. Call got_section() to make .got. Update all callers
- and their callers and so on.
- 2012-11-30 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::do_scan_relocs): Make STB_LOCAL
- _GLOBAL_OFFSET_TABLE_ rather than STB_WEAK.
- (Output_data_got_powerpc::make_header): Update _GLOBAL_OFFSET_TABLE_
- value if it already exists.
- 2012-11-19 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/14858
- * x86_64.cc (Relocate::tls_ld_to_le): Support x32.
- 2012-11-14 Roland McGrath <mcgrathr@google.com>
- * arm.cc (Output_data_plt_arm_nacl::first_plt_entry): Use bic rather
- than bfc instruction for data sandboxing.
- 2012-11-08 Alan Modra <amodra@gmail.com>
- * po/POTFILES.in: Regenerate.
- 2012-11-05 Alan Modra <amodra@gmail.com>
- * configure.ac: Apply 2012-09-10 change to config.in here.
- * configure: Regenerate.
- 2012-11-05 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj): Delete "Offset" typedef.
- (struct Opd_ent): Use "Address" rather than "Offset".
- (Output_data_got_powerpc::got_base_offset): Return Valtype.
- (Target_powerpc::got_section): Make public.
- (Target_powerpc::scan_relocs): Move code setting symbols..
- (Powerpc_relobj::do_scan_relocs): ..to here, new function.
- Create _SDA_BASE_ only when referenced.
- 2012-11-02 Roland McGrath <mcgrathr@google.com>
- * i386.cc (Target_i386::relocate_relocs): Remove extraneous typename
- from last change.
- 2012-11-01 Roland McGrath <mcgrathr@google.com>
- * target.h (Sized_target::relocate_relocs): Use Elf_Off
- for offset_in_output_section parameter.
- (Sized_target::relocate_special_relocatable): Likewise.
- * arm.cc (Target_arm::relocate_relocs): Likewise.
- (Target_arm::relocate_special_relocatable): Likewise.
- * i386.cc (Target_i386::relocate_relocs): Likewise.
- * powerpc.cc (Target_powerpc::relocate_relocs): Likewise.
- * sparc.cc (Target_sparc::relocate_relocs): Likewise.
- * target-reloc.h (relocate_relocs): Likewise.
- * testsuite/testfile.cc (Target_test): Likewise.
- * tilegx.cc (Target_tilegx::relocate_relocs): Likewise.
- * x86_64.cc (Target_x86_64::relocate_relocs): Likewise.
- * system.h: Move inclusion of <clocale> to after <libintl.h> in
- [ENABLE_NLS] section, and separately at top of [!ENABLE_NLS] section.
- * descriptors.cc (set_close_on_exec): Add ATTRIBUTE_UNUSED to the
- parameter, which is unused in the [!F_SETFD] case.
- * dwarf_reader.cc (Sized_elf_reloc_mapper::symbol_section): Cast
- SYMNDX to off_t before comparing it to this->data_size().
- * output.cc (Output_symtab_xindex::endian_do_write): Likewise.
- * incremental.cc (Output_section_incremental_inputs::do_write):
- Cast GLOBAL_SYM_COUNT to off_t before comparing it to SYMTAB_SIZE.
- * nacl.cc: Include "libiberty.h" for vasprintf declaration.
- 2012-10-30 Steve McIntyre <steve.mcintyre@linaro.org>
- * gold.cc (Target_arm::do_adjust_elf_header): Add the
- hard-float/soft-float ABI flag as appropriate for ET_DYN/ET_EXEC
- in EABI_VER5.
- 2012-10-29 Cary Coutant <ccoutant@google.com>
- * dwp.cc (usage): Add file and exit status parameters;
- add --help and --version options.
- (print_version): New function.
- (main): Add --help and --version options.
- 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (MOSTLYCLEANFILES): Add
- final_layout_sequence.txt.
- * testsuite/Makefile.in: Regenerated.
- 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (COMPILE1): New variable. Renamed from
- COMPILE generated by automake.
- (LINK1): Likewise.
- (CXXCOMPILE1): Likewise.
- (CXXLINK1): Likewise.
- (COMPILE): Strip out -Wp,-D_FORTIFY_SOURCE= from COMPILE1.
- (LINK): Likewise.
- (CXXCOMPILE): Likewise.
- (CXXLINK): Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
- * dwp.cc (Dwo_file::record_target_info): Issue a fatal error
- on bad fwrite return.
- 2012-10-25 H.J. Lu <hongjiu.lu@intel.com>
- * dwp.cc (Dwo_file::remap_str_offset): Use section_offset_type
- on val.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (TEST_OBJCOPY): New macro.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/dwp_test.h: New source file.
- * testsuite/dwp_test_1.cc: New source file.
- * testsuite/dwp_test_1.s: New source file.
- * testsuite/dwp_test_1.sh: New source file.
- * testsuite/dwp_test_1b.cc: New source file.
- * testsuite/dwp_test_1b.s: New source file.
- * testsuite/dwp_test_2.cc: New source file.
- * testsuite/dwp_test_2.s: New source file.
- * testsuite/dwp_test_2.sh: New source file.
- * testsuite/dwp_test_main.cc: New source file.
- * testsuite/dwp_test_main.s: New source file.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * dwp.h: New header file.
- * dwp.cc: New source file.
- * gold.h: Move shared declarations to system.h.
- * system.h: New header file.
- * Makefile.am: Add dwp.
- * Makefile.in: Regenerate.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_ranges_table::read_range_list): Call
- Dwarf_info_reader::read_from_pointer.
- (Dwarf_pubnames_table::read_header): Likewise.
- (Dwarf_pubnames_table::next_name): Likewise.
- (Dwarf_die::read_attributes): Likewise.
- (Dwarf_die::skip_attributes): Likewise.
- (Dwarf_info_reader::read_from_pointer): New function template.
- * dwarf_reader.h (Dwarf_ranges_table): Add dwinfo_.
- (Dwarf_pubnames_table): Likewise.
- (Dwarf_info_reader::read_from_pointer): New function template.
- * gdb-index.cc (Gdb_index_info_reader): Adjust call to
- Dwarf_pubnames_table ctor.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_info_reader::do_parse): Use stored
- abbrev_shndx.
- * dwarf_reader.h (Dwarf_info_reader::Dwarf_info_reader): Initialize
- abbrev_shndx_.
- (Dwarf_info_reader::set_abbrev_shndx): New method.
- (Dwarf_info_reader::abbrev_shndx_): New data member.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (make_elf_reloc_mapper): Check size and endianness
- from object, not parameters.
- (Dwarf_info_reader::parse): Likewise.
- * object.h (Relobj::elfsize, Relobj::is_big_endian): New methods.
- (Relobj::do_elfsize, Relobj::do_is_big_endian): New methods.
- (Sized_relobj::do_elfsize, Sized_relobj::do_is_big_endian): New
- methods.
- 2012-10-23 Cary Coutant <ccoutant@google.com>
- * fileread.cc (Input_file::Input_file): New constructor.
- * fileread.h (class Input_file): Add new constructor.
- 2012-10-18 Alan Modra <amodra@gmail.com>
- PR gold/14727
- * object.cc (Relobj::is_section_name_included): Also match
- .sdata personality section.
- 2012-10-18 Alan Modra <amodra@gmail.com>
- * target-reloc.h (class Default_comdat_behavior): New, package up..
- (get_comdat_behaviour): ..this.
- (relocate_section): Add Relocate_comdat_behavior template arg,
- adjust code to suit.
- * arm.cc (Target_arm::relocate_section): Adjust to suit.
- (Target_arm::scan_reloc_section): Likewise.
- * i386.cc (Target_i386::relocate_section): Likewise.
- * sparc.cc (Target_sparc::relocate_section): Likewise.
- * tilegx.cc (Target_tilegx::relocate_section): Likewise.
- * x86_64.cc (Target_x86_64::relocate_section): Likewise.
- * powerpc.cc (class Relocate_comdat_behavior): New.
- (Target_powerpc::relocate_section): Don't zap opd relocs. Supply
- gold::relocate_section with new template arg.
- 2012-10-18 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::Scan::local, global): Always emit
- dynamic relocs for GOT_TPREL got entries, without symbol if
- resolving locally.
- (Target_powerpc::do_gc_add_reference): Don't add for dynamic objects.
- (Target_powerpc::scan_relocs): Define _GLOBAL_OFFSET_TABLE_ early.
- (Target_powerpc::Relocate:relocate): REL32 reloc may be unaligned.
- 2012-10-17 Alan Modra <amodra@gmail.com>
- PR gold/14726
- * gold.cc (queue_middle_tasks): Call gc_mark_symbol on _init and _fini.
- 2012-10-16 Sriraman Tallam <tmsriram@google.com>
- * layout.cc (Layout::include_section): Keep sections marked
- SHF_EXCLUDE when doing relocatable links.
- 2012-10-16 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::define_save_restore_funcs): New func.
- (Target_powerpc::do_finalize_sections): Call it.
- (Output_data_save_res): New class and supporting functions.
- (Target_powerpc::symval_for_branch): Only look up .opd entry for
- normal symbols defined in object files.
- 2012-10-12 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::add_gc_mark, process_gc_mark): New.
- (struct Opd_ent): Make "discard" a bit field. Add "gc_mark".
- (Target_powerpc::do_gc_mark_symbol): Delay marking function code
- section if scan_opd_relocs not yet called.
- (Target_powerpc::gc_process_relocs): Call process_gc_mark.
- 2012-10-12 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Output_data_plt_powerpc::add_entry, add_ifunc_entry,
- add_local_ifunc_entry): Revert last change.
- (Target_powerpc::make_plt_entry, make_local_ifunc_plt_entry): Likewise.
- 2012-10-05 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::do_plt_address_for_local,
- do_plt_address_for_global): New functions.
- (Output_data_got_powerpc::do_write): Don't segfault when linking
- statically.
- (Output_data_plt_powerpc::add_entry, add_ifunc_entry,
- add_local_ifunc_entry): Return true on adding entry..
- (Target_powerpc::make_plt_entry): ..use to avoid unnecessary
- glink->add_entry call. Remove unused symtab param. Adjust calls.
- (Target_powerpc::make_local_ifunc_plt_entry): Likewise.
- (Target_powerpc::make_iplt_section): Remove symtab param. Don't
- set up symbols here.
- (Target_powerpc::do_finalize_sections): Instead set up __rela_iplt
- syms here. Do so even when no .iplt. Don't segfault when linking
- statically.
- (Output_data_glink::add_entry, find_entry): Rearrange params. Add
- new variants without reloc param.
- (Glink_sym_ent::Glink_sym_ent): Likewise.
- (Target_powerpc::Scan::reloc_needs_plt_for_ifunc): Accept any
- reloc when refs will resolve to plt call stub.
- (Target_powerpc::Scan::local): Correct ifunc handling. Allow
- R_PPC_PLTREL24 to resolve locally.
- (Target_powerpc::Scan::global): Correct ifunc handling.
- (Target_powerpc::Relocate::relocate): Correct local sym glink
- lookup. Don't destroy "value" when we have a plt call stub,
- and when checking plt call validity.
- (Target_powerpc::do_dynsym_value): Simplify.
- 2012-10-05 Alan Modra <amodra@gmail.com>
- * i386.cc (Output_data_plt_i386::address_for_global,
- address_for_local): Add plt offset to returned value. Adjust uses.
- * sparc.cc (Output_data_plt_sparc::address_for_global,
- address_for_local): Likewise.
- * tilegx.cc (Output_data_plt_tilegx::address_for_global,
- address_for_local): Likewise.
- * x86_64.cc (Output_data_plt_x86_64::address_for_global,
- address_for_local): Likewise.
- * target.h (Target::plt_address_for_global, plt_address_for_local):
- Update comment.
- * output.cc (Output_reloc::symbol_value): Don't add plt offset here.
- (Output_data_got::Got_entry::write): Nor here.
- * output.h: Comment fix.
- 2012-10-02 Jiong Wang <jiwang@tilera.com>
- * tilegx.cc (Target_tilegx::do_finalize_sections): Adjust
- global_offset_table_ value for larget got.
- (Target_tilegx::Relocate::relocate): Handle adjusted got value.
- 2012-09-29 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Target_powerpc::iplt_): New output section.
- (Target_powerpc::iplt_section, make_iplt_section,
- reloc_needs_plt_for_ifunc, make_local_ifunc_plt_entry): New functions.
- (Target_powerpc::make_plt_entry): Handle ifunc syms.
- Target_powerpc::plt_entry_count): Count iplt entries too.
- (Output_data_plt_powerpc::Output_data_plt_powerpc): Don't create
- reloc section in constructor. New params.
- (Target_powerpc::make_plt_section): Create reloc section here instead.
- (Output_data_plt_powerpc::add_ifunc_entry, add_local_ifunc_entry): New
- functions.
- (Output_data_plt_powerpc::initial_plt_entry_size_, name_): New vars.
- (Output_data_glink::add_entry, find_entry): New functions to
- deal with local syms.
- (Glink_sym_ent): Add support for local syms.
- (Output_data_glink::do_write): Handle ifunc plt entries.
- (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
- (Target_powerpc::Scan::local, global): Handle ifunc syms.
- (Target_powerpc::Relocate::relocate): Likewise.
- (Target_powerpc::do_dynsym_value): Use glink stub, not plt entry.
- 2012-09-25 Alan Modra <amodra@gmail.com>
- * object.h (Sized_relobj_file::adjust_local_symbol,
- do_adjust_local_symbol): New functions.
- * object.cc (Sized_relobj_file::do_count_local_symbols): Use the above.
- * powerpc.cc (Powerpc_relobj::do_adjust_local_symbol): New function.
- (Powerpc_relobj::scan_opd_relocs): Warn on unexpected opd relocs
- and irregular opd entry spacing.
- (Powerpc_relobj::do_read_relocs): Add opd size checks.
- (Global_symbol_visitor_opd): New functor.
- (Target_powerpc::do_finalize_sections): Omit global symbols defined
- on deleted opd entries.
- 2012-09-15 Jiong Wang <jiwang@tilera.com>
- * tilegx.cc: New file.
- * Makefile.am (TARGETSOURCES): Add tilegx.cc
- (ALL_TARGETOBJS): Add tilegx.$(OBJEXT)
- * configure.tgt: Add entries for tilegx*.
- * configure.ac: Likewise.
- * Makefile.in: Rebuild.
- * configure: Likewise.
- * testsuite/icf_safe_test.sh (arch_specific_safe_fold): Handle
- tilegx.
- 2012-09-13 Alan Modra <amodra@gmail.com>
- * target-reloc.h (scan_relocs): Call scan.local for relocs
- against symbols in discarded sections. Pass is_discarded
- param.
- * arm.cc, * i386.cc, * sparc.cc, * x86_64.cc (Target_*::Scan::local):
- Add is_discarded param.
- * powerpc (Target_powerpc::Scan::local): Likewise. Use
- is_discarded to flag opd entry as discarded. Don't emit dyn
- relocs on such entries.
- (Target_powerpc::Scan::global): Similarly detect and handle
- such opd entries.
- (Powerpc_relobj): Replace opd_ent_shndx_ and opd_ent_off_ with
- opd_ent_. Update all uses.
- (Powerpc_relobj::get_opd_discard, set_opd_discard): New functions.
- (Target_powerpc::relocate_section): Zero out discarded opd
- entry relocs.
- 2012-09-12 Ian Lance Taylor <iant@google.com>
- PR gold/14570
- * output.cc: Rename Output_data_got template parameter from size
- to got_size for all functions. Compile all variants of
- Output_data_got.
- (Output_data_got::Got_entry::write): Correct use of size for
- symbol value. Use local_is_tls rather than casting to
- Sized_relobj_file.
- * object.h (class Object): Add local_is_tls and do_local_is_tls.
- (class Sized_relobj_file): Add do_local_is_tls.
- * incremental.h (class Sized_relobj_incr): Add do_local_is_tls.
- 2012-09-11 Alan Modra <amodra@gmail.com>
- PR gold/14566
- * layout.cc (Layout::set_segment_offsets): When using
- common-page-size alignment, ensure we are on a new max-page-size
- page.
- * output.cc (Output_segment::set_section_addresses): Use
- abi_pagesize, not common_pagesize for relro boundary.
- (Output_segment::set_offset): Likewise.
- 2012-09-11 Alan Modra <amodra@gmail.com>
- * output.h (Output_data_got::add_global_tls, add_local_tls,
- add_local_tls_pair): New functions.
- (Output_data_got::add_local_pair_with_rel): Remove second
- reloc param. Expand comment.
- (Output_data_got::Got_entry): Rename use_plt_offset_ to
- use_plt_or_tls_offset_, similarly for constructor param.
- (Output_data_got::Got_entry::write): Add got_index param.
- * output.cc (Output_data_got::add_global_tls, add_local_tls,
- add_local_tls_pair): New functions.
- (Output_data_got::Got_entry::write): Handle tls symbols
- with use_plt_or_tls_offset_ set specially.
- (Output_data_got::add_local_pair_with_rel): Only one reloc.
- (Output_data_got::do_write): Replace iterator with index, pass
- index to entry write function.
- * target.h (Target::tls_offset_for_local, tls_offset_for_global,
- do_tls_offset_for_local, do_tls_offset_for_global): New functions.
- * arm.cc (Target_arm::Scan::local): Update add_local_pair_with_rel
- call.
- * i386.cc (Target_i386::Scan::local): Likewise.
- * sparc.cc (Target_sparc::Scan::local): Likewise.
- * x86_64.cc (Target_x86_64::Scan::local): Likewise.
- * powerpc.cc (Target_powerpc::do_tls_offset_for_local,
- do_tls_offset_for_global): New functions.
- (Target_powerpc::Scan::local): Correct TLS relocations and got
- entry values.
- (Target_powerpc::Scan::global): Don't emit unnecessary
- dynamic relocations on TLS GOT entries.
- 2012-09-10 Matthias Klose <doko@ubuntu.com>
- * config.in: Disable sanity check for kfreebsd.
- 2012-09-10 Sterling Augustine <saugustine@google.com>
- * gdb-index.cc (Gdb_index::pubnames_read): New parameter.
- (Gdb_index::pubtypes_read): New parameter.
- (Gdb_index_info_reader::read_pubnames_and_pubtypes): Add parameters
- to calls.
- * gdb-index.h (Gdb_index): New fields pubnames_object_ and
- pubtypes_object_.
- 2012-09-09 Alan Modra <amodra@gmail.com>
- * target.h (Target::gc_mark_symbol, do_gc_mark_symbol): New functions.
- (Sized_target::gc_add_reference, do_gc_add_reference): New functions.
- * gc.h (gc_process_relocs): Call target gc_add_reference.
- * gold.cc (queue_middle_tasks): Use gc_mark_symbol on start sym.
- * symtab.cc (Symbol_table::gc_mark_undef_symbols): Use gc_mark_symbol.
- (Symbol_table::gc_mark_symbol): Call target gc_mark_symbol. Remove
- unnecessary cast.
- * powerpc.cc (Powerpc_relobj::get_opd_ent): Rearrange parameters
- to cater for when we don't need code offset. Update use.
- (Powerpc_relobj::access_from_map_, opd_valid_): New vars.
- (Powerpc_relobj::access_from_map, add_reference, opd_valid,
- set_opd_valid): New functions.
- (Target_powerpc::do_gc_add_reference): New function.
- (Target_powerpc::gc_process_relocs): Call gc()->add_reference on
- stashed refs.
- (Target_powerpc::do_gc_mark_symbol): New function.
- 2012-09-06 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_die::read_attributes): Add
- DW_FORM_GNU_addr_index and DW_FORM_GNU_str_index.
- (Dwarf_die::skip_attributes): Likewise.
- * object.cc (Read_symbols_data::~Read_symbols_data): Update comment.
- * testsuite/gdb_index_test.cc (inline_func_1): New function.
- (main): Call it.
- * testsuite/gdb_index_test_comm.sh: Check index for inline function.
- 2012-09-05 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/script_test_3.t: Add .got.plt output section
- statement.
- * testsuite/script_test_4.t: Likewise.
- 2012-09-05 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relocate_functions): Upcase enum values,
- update all uses and lose "enum" when using type.
- 2012-09-05 Alan Modra <amodra@gmail.com>
- * configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): False for powerpc.
- * configure: Regenerate.
- * testsuite/Makefile.am (final_layout.stdout): Pass --synthetic to nm.
- (plugin_final_layout.stdout): Likewise.
- (memory_test): Set page sizes to 0x1000.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/discard_locals_test.sh: Add FIXME comment.
- * testsuite/justsyms_exec.c: Disable function test for powerpc64.
- * testsuite/pr14265.t: Add .got output section statement.
- * testsuite/script_test_2.t: Likewise.
- * testsuite/script_test_3.t: Likewise.
- * testsuite/script_test_4.t: Likewise.
- * testsuite/script_test_5.t: Likewise.
- * testsuite/script_test_6.t: Likewise.
- * testsuite/script_test_7.t: Likewise.
- * testsuite/script_test_9.t: Likewise.
- 2012-09-05 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::get_opd_ent): Make const.
- (Powerpc_relocate_functions::Status): New typedef.
- (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
- (Target_powerpc::Scan::local): Handle REL64.
- (Target_powerpc::Scan::global): Likewise, and dynamic relocs
- for REL32 and REL64.
- (Target_powerpc::symval_for_branch): New function, extracted from..
- (Target_powerpc::Relocate::relocate): ..here. Correct plt call
- checks. Report overflow errors.
- 2012-09-05 Alan Modra <amodra@gmail.com>
- * object.h (Sized_relobj_file::emit_relocs): Delete.
- (Sized_relobj_file::emit_relocs_reltype): Delete.
- * reloc.cc (Sized_relobj_file::do_relocate_sections): Call target
- relocate_relocs for --emit-relocs.
- (Sized_relobj_file::emit_relocs, emit_relocs_reltype): Delete.
- * output.h: Update comment.
- (Output_segment::first_section): New function.
- (Output_segment::first_section_load_address): Use first_section.
- * output.cc (Output_segment::first_section): New function extracted..
- (Output_segment::first_section_load_address): ..from here. Delete.
- * target-reloc.h (relocate_for_relocatable): Rename to relocate_relocs.
- * target.h (Sized_target::relocate_for_relocatable): Likewise.
- * arm.cc (Target_arm::relocate_for_relocatable): Likewise, and
- adjust call to target.h function.
- * i386.cc (Target_i386): Likewise.
- * sparc.cc (Target_sparc): Likewise.
- * x86_64.cc (Target_x86_64): Likewise.
- * powerpc.cc (Target_powerpc): Likewise.
- (Target_powerpc::Scan::local, global): Handle R_POWERPC_TLS. Ensure
- first tls section has section symbol for optimised local dynamic
- output relocs.
- (Target_powerpc::Relocate::relocate): Correct local dynamic value.
- (Target_powerpc::relocate_relocs): Adjust relocs emitted for
- optimised tls code.
- * testsuite/testfile.cc (Target_test::relocate_for_relocatable):
- Rename to relocate_relocs. Update error message.
- 2012-09-04 Andreas Schwab <schwab@linux-m68k.org>
- * powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
- --just-symbols.
- 2012-08-31 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj): Add and use Address typedef.
- (Powerpc_relobj::toc_base_offset): New stub function.
- (Target_powerpc): Add tp_offset, dtp_offset. Rename
- got_mod_index_offset to tlsld_got_offset. Update all refs.
- (Target_powerpc::Relocate::enum skip_tls): New.
- (Target_powerpc::call_tls_get_addr_): New var.
- (Target_powerpc::is_branch_reloc): Move to file scope.
- (Target_powerpc::relocate_tls, optimize_tls_reloc): Delete.
- (Target_powerpc::optimize_tls_gd, optimize_tls_ld, optimize_tls_ie):
- New functions.
- (Target_powerpc::enum Got_type): Delete old values, add new ones.
- (powerpc_info): Correct common_pagesize for ppc64.
- (at_tls_transform, needs_dynamic_reloc, use_plt_offset): New functions.
- (Powerpc_relocate_functions): Add overflow check enums and functions.
- Add non-shift version of rela, rela_ua. Delete all rel public
- functions. Delete addr16_lo. Add addr64, addr64_u, addr32,
- addr32_u, addr24, addr16_u, addr16_hi2, addr16_ha2, addr16_hi3,
- addr16_ha3, addr14 functions.
- (Output_data_got_powerpc::add_constant_pair): New function.
- (Output_data_got_powerpc::got_base_offset): Likewise.
- (Output_data_got_powerpc::do_write): Correct 64-bit got header.
- (instruction constants): Sort, add some more.
- (Output_data_glink::do_write): Add and use Address typedef. Use
- object->toc_base_offset() stub for 64-bit.
- (Target_powerpc::tlsld_got_offset): Use add_constant_pair.
- (Target_powerpc::Scan::get_reference_flags): Handle more relocs.
- (Target_powerpc::Scan::local, global): Emit relative dynamic reloc
- for R_PPC64_TOC. Handle more relocs. Generate got entries for TLS.
- Always treat .opd relocs as against locally defined symbol.
- Correct condition for RELATIVE relocs.
- (Target_powerpc::do_finalize_sections): Test for NULL sections.
- (Target_powerpc::Relocate::relocate): Use plt call stub as value
- for 32-bit syms with a plt entry. Correct ppc64 toc base
- calculations. Handle TLS relocs, and more. Add overflow
- checking and adjust for Powerpc_relocate_functions changes.
- (Target_powerpc::relocate_for_relocatable): Handle zero r_sym.
- Reinstate --emit-relocs code with FIXME.
- 2012-08-30 Alan Modra <amodra@gmail.com>
- * layout.cc (Layout::set_segment_offsets): Set p_align to
- abi_pagesize, not common_pagesize.
- (Layout::relaxation_loop_body): Similarly use abi_pagesize
- to determine whether file header can go in segment.
- 2012-08-30 Alan Modra <amodra@gmail.com>
- * output.h (Output_reloc::Output_reloc <output section>): Add
- is_relative param. Adjust calls.
- (Output_reloc::add_output_section_relative): New functions.
- * output.cc (Output_reloc::Output_reloc <output section>): Handle
- is_relative.
- (Output_reloc::symbol_value): Handle SECTION_CODE.
- 2012-08-24 Sriraman Tallam <tmsriram@google.com>
- * gold.cc (queue_middle_tasks): Call layout again when unique
- segments for sections is desired.
- * layout.cc (Layout::Layout): Initialize new members.
- (Layout::get_output_section_flags): New function.
- (Layout::choose_output_section): Call get_output_section_flags.
- (Layout::layout): Make output section for mapping to a unique segment.
- (Layout::insert_section_segment_map): New function.
- (Layout::attach_allocated_section_to_segment): Make unique segment for
- output sections marked so.
- (Layout::segment_precedes): Check for unique segments when sorting.
- * layout.h (Layout::Unique_segment_info): New struct.
- (Layout::Section_segment_map): New typedef.
- (Layout::insert_section_segment_map): New function.
- (Layout::get_output_section_flags): New function.
- (Layout::is_unique_segment_for_sections_specified): New function.
- (Layout::set_unique_segment_for_sections_specified): New function.
- (Layout::unique_segment_for_sections_specified_): New member.
- (Layout::section_segment_map_): New member.
- * object.cc (Sized_relobj_file<size, big_endian>::do_layout):
- Rename is_gc_pass_one to is_pass_one.
- Rename is_gc_pass_two to is_pass_two.
- Rename is_gc_or_icf to is_two_pass.
- Check for which pass based on whether symbols data is present.
- Make it two pass when unique segments for sections is desired.
- * output.cc (Output_section::Output_section): Initialize new
- members.
- * output.h (Output_section::is_unique_segment): New function.
- (Output_section::set_is_unique_segment): New function.
- (Output_section::is_unique_segment_): New member.
- (Output_section::extra_segment_flags): New function.
- (Output_section::set_extra_segment_flags): New function.
- (Output_section::extra_segment_flags_): New member.
- (Output_section::segment_alignment): New function.
- (Output_section::set_segment_alignment): New function.
- (Output_section::segment_alignment_): New member.
- (Output_segment::Output_segment): Initialize is_unique_segment_.
- (Output_segment::is_unique_segment): New function.
- (Output_segment::set_is_unique_segment): New function.
- (Output_segment::is_unique_segment_): New member.
- * plugin.cc (allow_unique_segment_for_sections): New function.
- (unique_segment_for_sections): New function.
- (Plugin::load): Add new functions to transfer vector.
- * Makefile.am (plugin_final_layout.readelf.stdout): Add readelf output.
- * Makefile.in: Regenerate.
- * testsuite/plugin_final_layout.sh: Check if unique segment
- functionality works.
- * testsuite/plugin_section_order.c (onload): Check if new interfaces
- are available.
- (allow_unique_segment_for_sections): New global.
- (unique_segment_for_sections): New global.
- (claim_file_hook): Call allow_unique_segment_for_sections.
- (all_symbols_read_hook): Call unique_segment_for_sections.
- 2012-08-22 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::include_section): Don't assert on GROUP
- sections with --emit-relocs.
- 2012-08-21 Cary Coutant <ccoutant@google.com>
- * symtab.cc (Symbol_table::gc_mark_undef_symbols): Don't assert
- if --export-dynamic-symbol names an undef symbol.
- 2012-08-18 Alan Modra <amodra@gmail.com>
- * powerpc.cc: Formatting and white space.
- (Powerpc_relobj): Rename got2_section_ to special_.
- Add opd_ent_shndx_ and opd_ent_off_ vectors.
- (Powerpc_relobj::opd_shndx, init_opd, get_opd_ent, set_opd_ent,
- scan_opd_relocs, do_read_relocs, opd_ent_ndx): New functions.
- (Target_powerpc): Add Address typedef and invalid_address. Use
- throughout.
- (Target_powerpc::is_branch_reloc): New function.
- (Powerpc_relocate_functions): Add Address typedef, use throughout.
- (Powerpc_relocate_functions:rela, rela_ua): Correct type used
- for dst_mask, value and addend.
- (Powerpc_relobj::do_find_special_sections): Find .opd for 64-bit.
- (ld_2_1, cror_15_15_15, cror_31_31_31): New insn constants.
- (Output_data_glink::do_write): Correct toc base. Don't try to use
- uint16_t for 24-bit offset. Use get_output_section_offset and
- check return.
- (Target_powerpc::Scan::local): Handle more relocs.
- (Target_powerpc::do_finalize_sections): Set up DT_PPC64_GLINK.
- (Target_powerpc::Relocate::relocate): Correct toc base calculation.
- Plug in toc restoring insn after plt calls. Translate branches
- to function descriptor symbols to corresponding entry point.
- (Target_powerpc::relocate_for_relocatable): Check return from
- get_output_section_offset.
- * symtab.h: Comment typo.
- 2012-08-14 Ian Lance Taylor <iant@google.com>
- * x86_64.cc (Target_x86_64::Scan::global): Fix erroneous call to
- unsupported_relocal_local to call unsupported_reloc_global.
- 2012-08-14 Nick Clifton <nickc@redhat.com>
- PR ld/14265
- * script-sections.cc (Sections_element::output_section_name): Add
- keep return parameter.
- (Output_section_element::match_name): Add keep return parameter.
- Return the value of the keep_ member.
- * script-sections.h (class Output_section): Update
- output_section_name prototype.
- * layout.cc (Layout::keep_input_section): New public member
- function.
- (Layout::choose_output_section): Pass keep parameter to
- output_section_name.
- * layout.h (class Layout): Add keep_input_section.
- * object.cc (Sized_relobj_file::do_layout): Check for kept input
- sections.
- * testsuite/Makefile.am: Add a test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/pr14265.c: Source file for the test.
- * testsuite/pr14265.t: Linker script for the test.
- * testsuite/pr14265.sh: Shell script for the test.
- 2012-08-14 Alan Modra <amodra@gmail.com>
- * target.h (Target::output_section_name): New function.
- (Target::do_output_section_name): New function.
- * layout.cc (Layout::choose_output_section): Call the above.
- * powerpc.cc (Target_powerpc::do_output_section_name): New function.
- 2012-08-14 Alan Modra <amodra@gmail.com>
- * powerpc.cc: Update for renamed R_PPC_REL16 relocs.
- (Output_data_got_powerpc::do_write): Don't rely on base class lookup
- for replace_constant call.
- (Output_data_plt_powerpc::do_print_to_mapfile): New function.
- (Output_data_glink::do_print_to_mapfile): New function.
- (Target_powerpc::Scan::local): Ignore R_PPC64_TOCSAVE.
- (Target_powerpc::Relocate::relocate): Likewise.
- 2012-08-14 Alan Modra <amodra@gmail.com>
- * powerpc.cc (Powerpc_relobj::set_got2_shndx): Delete.
- (Powerpc_relobj::do_find_special_sections): Don't use set_got2_shndx.
- (Output_data_glink::add_entry,find_entry): Remove shndx param.
- (class Glink_sym_ent): Rename from struct Glink_sym_ent. Remove
- all references to shndx_. Handle special case for R_PPC_PLTREL24
- here.
- (class Glink_sym_ent_hash): Rename from struct Glink_sym_ent_hash.
- (Output_data_glink::do_write): Retrieve got2_shdnx from object.
- (Target_powerpc::make_plt_entry): Don't special case R_PPC_PLTREL24
- here.
- (Target_powerpc::Scan::global): Nor on make_plt_entry call.
- (Target_powerpc::Relocate::relocate): Nor on glink->find_entry call.
- 2012-08-12 Alan Modra <amodra@gmail.com>
- * powerpc.cc: Whitespace fixes. Wrap overly long lines.
- (glink insn constants): Use uint32_t.
- (Output_data_glink::add_entry): Use insert, not [] operator.
- 2012-08-11 Alan Modra <amodra@gmail.com>
- * object.h (Sized_relobj_file::find_shdr): New function.
- (Sized_relobj_file::find_special_sections): New function.
- * object.cc (Sized_relobj_file::find_shdr): New function.
- (Sized_relobj_file::find_eh_frame): Use find_shdr.
- (Sized_relobj_file::find_special_sections): New function, split out..
- (Sized_relobj_file::do_read_symbols): ..from here.
- * output.h (Output_data_got::replace_constant): New function.
- (Output_data_got::num_entries): New function.
- (Output_data_got::last_got_offset,set_got_size): Use num_entries.
- (Output_data_got::got_offset): Protected rather than private.
- (Output_data_got::replace_got_entry): New function.
- * output.cc (Output_data_got::replace_got_entry): New function.
- * powerpc.cc (class Powerpc_relobj): New.
- (class Powerpc_relocate_functions): Delete all psymval variants or
- convert to value,addend type. Delete pcrela, pcrela_unaligned.
- Implement _ha functions using corresponding _hi function.
- (Powerpc_relobj::find_special_sections): New function.
- (Target_powerpc::do_make_elf_object): New function.
- (class Output_data_got_powerpc): New.
- (class Output_data_glink): New.
- (class Powerpc_scan_relocatable_reloc): New.
- Many more changes througout file.
- 2012-08-09 Nick Clifton <nickc@redhat.com>
- * po/vi.po: Updated Vietnamese translation.
- 2012-08-07 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::add_target_dynamic_tags): If
- dynrel_includes_plt but no dyn_rel, emit dynamic reloc tags for
- plt_rel.
- 2012-07-30 Nick Clifton <nickc@redhat.com>
- * po/gold.pot: Updated template.
- * po/es.po: Updated Spanish translation.
- 2012-07-18 Cary Coutant <ccoutant@google.com>
- PR gold/14344
- * configure.ac: Add check for -gpubnames support.
- * configure: Regenerate.
- * testsuite/Makefile.am (gdb_index_test_1): Add check for -gpubnames
- support; force -gno-pubnames.
- (gdb_index_test_2, gdb_index_test_3): Add check for -gpubnames
- support.
- (gdb_index_test_4): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gdb_index_test_1.sh: Refactor code into common file.
- * testsuite/gdb_index_test_2.sh: Likewise.
- * testsuite/gdb_index_test_3.sh: Don't look for space after colon.
- * testsuite/gdb_index_test_4.sh: New script.
- * testsuite/gdb_index_test_comm.sh: New script with common code;
- don't look for space after colon.
- 2012-07-16 Sriraman Tallam <tmsriram@google.com>
- * gold.cc (queue_middle_tasks): Update function order only after
- deferred objects due to plugins are processed.
- 2012-07-11 Ian Lance Taylor <iant@google.com>
- * arm.cc (Arm_relocate_functions::abs16): Remove unused typedef.
- (Arm_exidx_cantunwind::do_fixed_endian_write): Likewise.
- (Target_arm::scan_reloc_for_stub): Likewise.
- * common.cc (Symbol_table::do_allocate_commons_list): Likewise.
- * dwarf_reader.cc (Dwarf_die::skip_attributes): Likewise.
- * ehframe.cc (Eh_frame::do_add_ehframe_input_section): Likewise.
- * incremental.cc (Sized_incr_dynobj::do_add_symbols): Likewise.
- * powerpc.cc (Target_powerpc::relocate_tls): Likewise.
- 2012-07-10 Dodji Seketeli <dodji@redhat.com>
- Ian Lance Taylor <iant@google.com>
- PR gold/14309
- * configure.ac: Test whether std::tr1::hash<off_t> works.
- * gold.h: Add a specialization for std::tr1::hash<off_t> if
- needed.
- * output.h (class Output_fill): Add virtual destructor.
- * configure, config.in: Rebuild.
- 2012-06-22 Roland McGrath <mcgrathr@google.com>
- * layout.cc (finalize): Define __ehdr_start symbol if applicable.
- 2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com>
- * plugin.cc (Plugin::load): Handle position independent executables.
- 2012-06-06 Cary Coutant <ccoutant@google.com>
- * layout.cc (gdb_sections): Remove ".debug_" prefixes,
- add .debug_macro.
- (lines_only_debug_sections): Likewise.
- (gdb_fast_lookup_sections): New static array.
- (is_gdb_debug_section): Rename formal parameter.
- (is_lines_only_debug_section): Likewise.
- (is_gdb_fast_lookup_section): New function.
- (Layout::include_section): Check for ".zdebug_" prefix; pass
- section name suffix to is_gdb_debug_section, et al.; check for
- fast-lookup sections when building .gdb_index.
- * options.h (--strip-debug-gdb): Update GDB version number.
- 2012-06-06 Cary Coutant <ccoutant@google.com>
- * configure.ac: Add check for fallocate.
- * configure: Regenerate.
- * config.in: Regenerate.
- * options.h (class General_options): Add --mmap-output-file and
- --posix-fallocate options.
- * output.cc: (posix_fallocate): Remove; replace with...
- (gold_fallocate): New function.
- (Output_file::map_no_anonymous): Call gold_fallocate.
- (Output_file::map): Check --mmap-output-file option.
- 2012-06-05 Jing Yu <jingyu@google.com>
- * gold.h (textdomain): Add do {} to empty while(0).
- (bindtextdomain): Likewise.
- 2012-06-04 Cary Coutant <ccoutant@google.com>
- * dynobj.cc (Sized_dynobj::do_get_global_symbol_counts): Call
- has_dynsym_index.
- 2012-05-25 Sriraman Tallam <tmsriram@google.com>
- * symtab.cc (Symbol_table::define_special_symbol):
- Initialize *poldsym to prevent uninitialized variable errors.
- 2012-05-23 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::section_name_mapping): Add rules to handle
- exact match on .data.rel.ro.local or .data.rel.ro.
- (Layout::output_section_name): Check for exact matches.
- 2012-05-23 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::section_name_mapping): Match .data.rel.ro.*
- more carefully.
- 2012-05-22 Cary Coutant <ccoutant@google.com>
- * symtab.cc (Symbol::should_add_dynsym_entry): Check for relocatable
- object before exporting symbol.
- 2012-05-21 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/tls_test.cc: Include "config.h" first.
- * testsuite/tls_test_c.c: Likewise.
- 2012-05-17 Daniel Richard G. <skunk@iskunk.org>
- Nick Clifton <nickc@redhat.com>
- PR 14072
- * configure.in: Add check that sysdep.h has been included before
- any system header files.
- * configure: Regenerate.
- * config.in: Regenerate.
- 2012-05-14 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::make_output_section): Mark .tdata section
- as RELRO.
- * testsuite/relro_test.cc: Add a TLS variable.
- 2012-05-10 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/14091
- * x86_64.cc (Target_x86_64::Scan::local): For x32, generate
- R_X86_64_RELATIVE64 instead of R_X86_64_RELATIVE in case of
- R_X86_64_64.
- 2012-05-08 Cary Coutant <ccoutant@google.com>
- * layout.cc (gdb_sections): Update GDB version, add .debug_addr.
- (lines_only_debug_sections): Likewise.
- 2012-05-02 Roland McGrath <mcgrathr@google.com>
- * nacl.cc: New file.
- * nacl.h: New file.
- * Makefile.am (CCFILES, HFILES): Add them.
- * Makefile.in: Regenerate.
- * i386.cc (Output_data_plt_i386_nacl): New class.
- (Output_data_plt_i386_nacl_exec): New class.
- (Output_data_plt_i386_nacl_dyn): New class.
- (Target_i386_nacl): New class.
- (Target_selector_i386_nacl): New class.
- (target_selector_i386): Use it instead of Target_selector_i386.
- * x86_64.cc (Output_data_plt_x86_64_nacl): New class.
- (Target_x86_64_nacl): New class.
- (Target_selector_x86_64_nacl): New class.
- (target_selector_x86_64, target_selector_x32): Use it instead of
- Target_selector_x86_64.
- * arm.cc (Output_data_plt_arm_nacl): New class.
- (Target_arm_nacl): New class.
- (Target_selector_arm_nacl): New class.
- (target_selector_arm, target_selector_armbe): Use it instead of
- Target_selector_arm.
- * target-select.cc (select_target): Take new Input_file* and off_t
- arguments, pass them on to recognize method of selector.
- * object.cc (make_elf_sized_object): Update caller.
- * parameters.cc (parameters_force_valid_target): Likewise.
- * incremental.cc (make_sized_incremental_binary): Likewise.
- * target-select.h: Update decl.
- (Target_selector::recognize): Take new Input_file* argument,
- pass it on to do_recognize.
- (Target_selector::do_recognize): Take new Input_file* argument.
- * freebsd.h (Target_selector_freebsd::do_recognize): Likewise.
- * powerpc.cc (Target_selector_powerpc::do_recognize): Likewise.
- * sparc.cc (Target_selector_sparc::do_recognize): Likewise.
- * testsuite/testfile.cc (Target_selector::do_recognize): Likewise.
- * target.h (Target::Target_info): New members isolate_execinstr
- and rosegment_gap.
- (Target::isolate_execinstr, Target::rosegment_gap): New methods.
- * arm.cc (Target_arm::arm_info): Update initializer.
- * i386.cc (Target_i386::i386_info): Likewise.
- * powerpc.cc (Target_powerpc::powerpc_info): Likewise.
- * sparc.cc (Target_sparc::sparc_info): Likewise.
- * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
- * testsuite/testfile.cc (Target_test::test_target_info): Likewise.
- * layout.cc (Layout::attach_allocated_section_to_segment):
- Take new const Target* argument. If target->isolate_execinstr(), act
- like --rosegment.
- (Layout::find_first_load_seg): Take new const Target* argument;
- if target->isolate_execinstr(), reject PF_X segments.
- (Layout::relaxation_loop_body): Update caller.
- (Layout::set_segment_offsets): If target->isolate_execinstr(),
- reset file offset to zero when we hit LOAD_SEG, and then do a second
- loop over the segments before LOAD_SEG to reassign offsets after
- addresses have been determined. Handle target->rosegment_gap().
- (Layout::attach_section_to_segment): Take new const Target* argument;
- pass it to attach_allocated_section_to_segment.
- (Layout::make_output_section): Update caller.
- (Layout::attach_sections_to_segments): Take new const Target* argument;
- pass it to attach_section_to_segment.
- * gold.cc (queue_middle_tasks): Update caller.
- * layout.h (Layout): Update method decls with new arguments.
- * arm.cc (Target_arm::Target_arm): Take optional argument for the
- Target_info pointer to use.
- (Target_arm::do_make_data_plt): New virtual method.
- (Target_arm::make_data_plt): New method that calls it.
- (Target_arm::make_plt_entry): Use it.
- (Output_data_plt_arm::Output_data_plt_arm): Take additional argument
- for the section alignment.
- (Output_data_plt_arm::do_first_plt_entry_offset): New abstract virtual
- method.
- (Output_data_plt_arm::first_plt_entry_offset): Call it.
- (Output_data_plt_arm::do_get_plt_entry_size): New abstract virtual
- method.
- (Output_data_plt_arm::get_plt_entry_size): Call it.
- (Output_data_plt_arm::do_fill_plt_entry): New abstract virtual method.
- (Output_data_plt_arm::fill_plt_entry): New method that calls it.
- (Output_data_plt_arm::do_fill_first_plt_entry): New abstract virtual
- method.
- (Output_data_plt_arm::fill_first_plt_entry): New method that calls it.
- (Output_data_plt_arm::set_final_data_size): Use get_plt_entry_size
- method instead of sizeof(plt_entry).
- (Output_data_plt_arm::add_entry): Likewise.
- Use first_plt_entry_offset method instead of sizeof(first_plt_entry).
- (Target_arm::first_plt_entry_offset): Call method on this->plt_ rather
- than static method.
- (Target_arm::plt_entry_size): Likewise.
- (Output_data_plt_arm::first_plt_entry, Output_data_plt_arm::plt_entry):
- Move to ...
- (Output_data_plt_arm_standard): ... here, new class.
- (Output_data_plt_arm::do_write): Move guts of PLT filling to...
- (Output_data_plt_arm_standard::do_fill_first_plt_entry): ... here ...
- (Output_data_plt_arm_standard::do_fill_plt_entry): ... and here.
- * x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64):
- Take additional argument for the PLT entry size.
- (Output_data_plt_x86_64::get_tlsdesc_plt_offset):
- Use get_plt_entry_size method rather than plt_entry_size variable.
- (Output_data_plt_x86_64::reserve_slot): Likewise.
- (Output_data_plt_x86_64::do_adjust_output_section): Likewise.
- (Output_data_plt_x86_64::add_entry): Likewise.
- (Output_data_plt_x86_64::add_local_ifunc_entry): Likewise.
- (Output_data_plt_x86_64::address_for_global): Likewise.
- (Output_data_plt_x86_64::address_for_local): Likewise.
- (Output_data_plt_x86_64::set_final_data_size): Likewise.
- (Output_data_plt_x86_64::first_plt_entry_offset): Likewise.
- Make method non-static.
- (Output_data_plt_x86_64::do_get_plt_entry_size): New abstract virtual
- method.
- (Output_data_plt_x86_64::get_plt_entry_size): Just call that.
- (Output_data_plt_x86_64::do_add_eh_frame): New abstract virtual method.
- (Output_data_plt_x86_64::add_eh_frame): New method to call it.
- (Output_data_plt_x86_64::do_fill_first_plt_entry): New abstract
- virtual method.
- (Output_data_plt_x86_64::fill_first_plt_entry): New method to call it.
- (Output_data_plt_x86_64::do_fill_plt_entry): New abstract
- virtual method.
- (Output_data_plt_x86_64::fill_plt_entry): New method to call it.
- (Output_data_plt_x86_64::do_fill_tlsdesc_entry): New abstract
- virtual method.
- (Output_data_plt_x86_64::fill_tlsdesc_entry): New method to call it.
- (Output_data_plt_x86_64::plt_entry_size)
- (Output_data_plt_x86_64::first_plt_entry)
- (Output_data_plt_x86_64::plt_entry)
- (Output_data_plt_x86_64::tlsdesc_plt_entry)
- (Output_data_plt_x86_64::plt_eh_frame_fde_size)
- (Output_data_plt_x86_64::plt_eh_frame_fde): Move to ...
- (Output_data_plt_x86_64_standard): ... here, new class.
- (Target_x86_64::Target_x86_64): Take optional argument for the
- Target_info pointer to use.
- (Target_x86_64::do_make_data_plt): New virtual method.
- (Target_x86_64::make_data_plt): New method to call it.
- (Target_x86_64::init_got_plt_for_update): Use that.
- Call this->plt_->add_eh_frame method here.
- (Output_data_plt_x86_64::init): Don't do add_eh_frame_for_plt here.
- (Target_x86_64::first_plt_entry_offset): Call method on this->plt_
- rather than static method.
- (Target_x86_64::plt_entry_size): Likewise.
- (Output_data_plt_x86_64::do_write): Use get_plt_entry_size method
- rather than plt_entry_size variable. Move guts of PLT filling to...
- (Output_data_plt_x86_64_standard::do_fill_first_plt_entry): ... here ...
- (Output_data_plt_x86_64_standard::do_fill_plt_entry): ... and here ...
- (Output_data_plt_x86_64_standard::do_fill_tlsdesc_entry): ... and here.
- * i386.cc (Output_data_plt_i386::Output_data_plt_i386): Take
- additional argument for the section alignment.
- Don't do add_eh_frame_for_plt here.
- (Output_data_plt_i386::first_plt_entry_offset): Make the method
- non-static. Use get_plt_entry_size method rather than plt_entry_size
- variable.
- (Output_data_plt_i386::do_get_plt_entry_size): New abstract virtual
- method.
- (Output_data_plt_i386::get_plt_entry_size): Call it.
- (Output_data_plt_i386::do_add_eh_frame): New abstract virtual method.
- (Output_data_plt_i386::add_eh_frame): New method to call it.
- (Output_data_plt_i386::do_fill_first_plt_entry): New abstract virtual
- method.
- (Output_data_plt_i386::fill_first_plt_entry): New method to call it.
- (Output_data_plt_i386::do_fill_plt_entry): New abstract virtual
- method.
- (Output_data_plt_i386::fill_plt_entry): New method to call it.
- (Output_data_plt_i386::set_final_data_size): Use get_plt_entry_size
- method instead of plt_entry_size.
- (Output_data_plt_i386::plt_entry_size)
- (Output_data_plt_i386::plt_eh_frame_fde_size)
- (Output_data_plt_i386::plt_eh_frame_fde): Move to ...
- (Output_data_plt_i386_standard): ... here, new class.
- (Output_data_plt_i386_exec): New class.
- (Output_data_plt_i386::exec_first_plt_entry): Move to ...
- (Output_data_plt_i386_exec::first_plt_entry): ... here.
- (Output_data_plt_i386::exec_plt_entry): Move to ...
- (Output_data_plt_i386_exec::plt_entry): ... here.
- (Output_data_plt_i386_dyn): New class.
- (Output_data_plt_i386::first_plt_entry): Move to ...
- (Output_data_plt_i386_dyn::first_plt_entry): ... here.
- (Output_data_plt_i386::dyn_plt_entry): Move to ...
- (Output_data_plt_i386_dyn::plt_entry): ... here.
- (Target_i386::Target_i386): Take optional argument for the Target_info
- pointer to use.
- (Target_i386::do_make_data_plt): New virtual method.
- (Target_i386::make_data_plt): New method to call it.
- (Target_i386::make_plt_section): Use that.
- Call this->plt_->add_eh_frame method here.
- (Output_data_plt_i386::add_entry): Use get_plt_entry_size method
- rather than plt_entry_size variable.
- (Output_data_plt_i386::add_local_ifunc_entry): Likewise.
- (Output_data_plt_i386::address_for_local): Likewise.
- (Output_data_plt_i386::do_write): Likewise.
- Move guts of PLT filling to...
- (Output_data_plt_i386_exec::do_fill_first_plt_entry): ... here ...
- (Output_data_plt_i386_exec::do_fill_plt_entry): ... and here ...
- (Output_data_plt_i386_dyn::do_fill_first_plt_entry): ... and here ...
- (Output_data_plt_i386_dyn::do_fill_plt_entry): ... and here.
- 2012-05-01 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Dwarf_die::read_attributes)
- (Dwarf_die::skip_attributes, Dwarf_die::int_attribute)
- (Dwarf_die::uint_attribute): Remove DW_FORM_null.
- * reduced_debug_output.cc
- (Output_reduced_debug_info_section::get_die_end): Remove
- DW_FORM_GNU_ref_index. Add default case.
- 2012-04-26 Mark Wielaard <mjw@redhat.com>
- * dwarf_reader.cc (Dwarf_die::address_attribute): New function.
- * dwarf_reader.h (Dwarf_die::address_attribute): Likewise.
- * gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Handle
- DW_AT_high_pc as offset from DW_AT_low_pc.
- * testsuite/Makefile.am (gdb_index_test_3.sh): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gdb_index_test_3.c: New test source file.
- * testsuite/gdb_index_test_3.sh: New test source file.
- 2012-04-25 Ian Lance Taylor <iant@google.com>
- * arm.cc (Target_arm::do_is_defined_by_abi): Make sym a const
- pointer.
- (Stub_addend_reader::operator()): Declare Arm_relocate_functions
- as a class, not a struct.
- (Target_arm::scan_span_for_cortex_a8_erratum): Likewise.
- (Target_arm::apply_cortex_a8_workaround): Likewise.
- * gc.h: Declare Reloc_types as a struct, not a class.
- * object.h: Declare Symbols_data as a struct.
- * reloc.h: Declare Read_relocs_data as a struct.
- * target.h: Declare Relocate_info as a struct.
- 2012-04-24 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::Relocate::relax_call): New function.
- (Target_sparc::Relocate::relocate): Call it for R_SPARC_WDISP30
- and R_SPARC_WPLT30.
- 2012-04-24 Cary Coutant <ccoutant@google.com>
- * incremental-dump.cc (find_input_containing_global): Replace
- magic number with symbolic constant.
- (dump_incremental_inputs): Update version number.
- * incremental.cc (Output_section_incremental_inputs): Update version
- number; import symbolic constants from Incremental_inputs_reader.
- (Incremental_inputs::create_data_sections): Align relocations
- section correctly for 64-bit targets.
- (Output_section_incremental_inputs::set_final_data_size): Use symbolic
- constants; add padding.
- (Output_section_incremental_inputs::write_header): Add assert for
- header_size.
- (Output_section_incremental_inputs::write_input_files): Add assert
- for input_entry_size.
- (Output_section_incremental_inputs::write_info_blocks): Add padding;
- add assert for object_info_size, input_section_entry_size,
- global_sym_entry_size.
- * incremental.h (Incremental_inputs_reader): Add symbolic constants
- for data structure sizes; use them.
- (Incremental_input_entry_reader): Import symbolic constants from
- Incremental_inputs_reader; use them.
- 2012-04-23 David S. Miller <davem@davemloft.net>
- * sparc.cc (class Target_sparc): Add elf_machine_, elf_flags_,
- and elf_flags_set_.
- (Target_sparc::Target_sparc): Initialize new fields.
- (Target_sparc::do_make_elf_object): New function.
- (Target_sparc::do_adjust_elf_header): New function.
- 2012-04-23 Cary Coutant <ccoutant@google.com>
- * gdb-index.cc (Gdb_index::do_write): Use Swap_aligned32 for writing
- CU range table of gdb index.
- 2012-04-20 David S. Miller <davem@davemloft.net>
- * target.cc (Sized_target::do_adjust_elf_header): Use big_endian
- instead of false.
- 2012-04-16 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::got_address): New function.
- (Sparc_relocate_functions::gdop_hix22): New function.
- (Sparc_relocate_functions::gdop_lox10): New function.
- (Target_sparc::Scan::local): Do not emit a GOT entry for GOTDATA
- relocs.
- (Target_sparc::Scan::local): Likewise if the global symbol is not
- preemptible and is not IFUNC.
- (Target_sparc::Relocate::relocate): Perform GOTDATA code
- transformations for local and non-preemptible non-IFUNC global
- symbols.
- * gdb-index.cc (Gdb_index::do_write): Use Swap_unaligned when
- writing out 64-bit part of ranges.
- * Makefile.am: Build IFUNC tests with -fPIC and -fPIE instead of
- -fpic and -fpie respectively.
- * Makefile.in: Regenerate.
- * sparc.cc (class Target_sparc): Add rela_ifunc_.
- (Target_sparc::Target_sparc): Initialize new field.
- (Target_sparc::do_plt_section_for_global): New function.
- (Target_sparc::do_plt_section_for_local): New function.
- (Target_sparc::reloc_needs_plt_for_ifunc): New function.
- (Target_sparc::make_plt_section): New function, broken out of
- make_plt_entry. Use ORDER_NON_RELRO_FIRST for ".plt".
- (Target_sparc::make_plt_entry): Call make_plt_section.
- (Target_sparc::make_local_ifunc_plt_entry): New function.
- (Target_sparc::rela_ifunc_section): New function.
- (Target_sparc::plt_section): Remove const.
- (Output_data_plt_sparc): Update declarations. Define Global_ifunc
- and Local_ifunc types. Add global_ifuncs_, local_ifuncs_, ifunc_rel_,
- and ifunc_count_ fields.
- (Output_data_plt_sparc::Output_data_plt_sparc): Initialize new fields.
- (Output_data_plt_sparc::add_entry): Handle IFUNC symbols.
- (Output_data_plt_sparc::add_local_ifunc_entry): New function.
- (Output_data_plt_sparc::rela_ifunc): New function.
- (Output_data_plt_sparc::emit_pending_ifunc_relocs): New function.
- (Output_data_plt_sparc::has_ifunc_section): New function.
- (Output_data_plt_sparc::entry_count): Include ifunc_count_.
- (Output_data_plt_sparc::address_for_global): New function.
- (Output_data_plt_sparc::address_for_local): New function.
- (Output_data_plt_sparc::plt_index_to_offset): New function.
- (Output_data_plt_sparc::set_final_data_size): Use plt_index_to_offset
- and entry_count.
- (Output_data_plt_sparc::do_write): Use first_plt_entry_offset and
- entry_count.
- (Target_sparc::Scan::get_reference_flags): Add R_SPARC_IRELATIVE and
- R_SPARC_JMP_IREL to switch.
- (Target_sparc::Scan::check_non_pic): Likewise.
- (Target_sparc::Scan::local): Handle IFUNC symbols.
- (Target_sparc::Scan::local): Likewise.
- (Target_sparc::Relocate::relocate): Likewise, use plt_address_for_global
- and plt_address_for_local.
- (Target_sparc::do_finalize_sections): Call emit_pending_ifunc_relocs.
- Define __rel_iplt_start and __rel_iplt_end if doing a static link.
- * output.h (Output_reloc): Allow use_plt_offset for global relocs too.
- (class Output_data_reloc): Adjust calls to Output_reloc_type.
- (Output_data_reloc::add_global_relative): (RELA only) Add use_plt_offset.
- * output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag for
- global relocs too.
- (Output_reloc::symbol_value): Respect use_plt_offset_ for global symbols.
- * powerpc.cc (Target_powerpc::Scan::global): Adjust add_global_relative
- calls.
- * sparc.cc (Target_sparc::Scan::global): Likewise.
- * x86_64.cc (Target_x86_64::Scan::global): Likewise.
- 2012-04-16 Cary Coutant <ccoutant@google.com>
- * archive.cc (Library_base::should_include_member): Check for
- --export-dynamic-symbol.
- * options.h (class General_options): Add --export-dynamic-symbol.
- * symtab.cc (Symbol::should_add_dynsym_entry): Check for
- --export-dynamic-symbol.
- (Symbol_table::gc_mark_undef_symbols): Likewise.
- (Symbol_table::do_add_undefined_symbols_from_command_line): Likewise.
- 2012-04-12 David S. Miller <davem@davemloft.net>
- * sparc.cc (Reloc::wdisp10): New relocation method.
- (Reloc::h34): Likewise.
- (Target_sparc::Scan::check_non_pic): Handle R_SPARC_H34.
- (Target_sparc::Scan::get_reference_flags): Handle R_SPARC_H34 and
- R_SPARC_WDISP10.
- (Target_sparc::Scan::local): Likewise.
- (Target_sparc::Scan::global): Likewise.
- (Target_sparc::Relocate::relocate): Likewise.
- 2012-04-09 Cary Coutant <ccoutant@google.com>
- * gdb-index.cc (Gdb_index_info_reader::record_cu_ranges): Allow
- low_pc == 0.
- 2012-04-06 Ian Lance Taylor <iant@google.com>
- * timer.cc: #include <unistd.h>.
- 2012-04-06 Roland McGrath <mcgrathr@google.com>
- * configure.in (AC_CHECK_HEADERS): Add locale.h.
- * config.in: Regenerate.
- * configure: Regenerate.
- 2012-04-05 Nick Clifton <nickc@redhat.com>
- * configure.ac (AC_CHECK_FUNCS): Add setlocale.
- (AM_LC_MESSAGES): Add.
- * aclocal.m4: Regenerate.
- * config.in: Regenerate.
- * configure: Regenerate.
- 2012-03-21 Cary Coutant <ccoutant@google.com>
- * Makefile.am: Add gdb-index.cc, gdb-index.h.
- * Makefile.in: Regenerate.
- * dwarf_reader.cc (Sized_elf_reloc_mapper::do_initialize): New function.
- (Sized_elf_reloc_mapper::symbol_section): New function.
- (Sized_elf_reloc_mapper::do_get_reloc_target): New function.
- (make_elf_reloc_mapper): New function.
- (Dwarf_abbrev_table::clear_abbrev_codes): New function.
- (Dwarf_abbrev_table::do_read_abbrevs): New function.
- (Dwarf_abbrev_table::do_get_abbrev): New function.
- (Dwarf_ranges_table::read_ranges_table): New function.
- (Dwarf_ranges_table::read_range_list): New function.
- (Dwarf_pubnames_table::read_section): New function.
- (Dwarf_pubnames_table::read_header): New function.
- (Dwarf_pubnames_table::next_name): New function.
- (Dwarf_die::Dwarf_die): New function.
- (Dwarf_die::read_attributes): New function.
- (Dwarf_die::skip_attributes): New function.
- (Dwarf_die::set_name): New function.
- (Dwarf_die::set_linkage_name): New function.
- (Dwarf_die::attribute): New function.
- (Dwarf_die::string_attribute): New function.
- (Dwarf_die::int_attribute): New function.
- (Dwarf_die::uint_attribute): New function.
- (Dwarf_die::ref_attribute): New function.
- (Dwarf_die::child_offset): New function.
- (Dwarf_die::sibling_offset): New function.
- (Dwarf_info_reader::check_buffer): New function.
- (Dwarf_info_reader::parse): New function.
- (Dwarf_info_reader::do_parse): New function.
- (Dwarf_info_reader::do_read_string_table): New function.
- (Dwarf_info_reader::lookup_reloc): New function.
- (Dwarf_info_reader::get_string): New function.
- (Dwarf_info_reader::visit_compilation_unit): New function.
- (Dwarf_info_reader::visit_type_unit): New function.
- (Sized_dwarf_line_info::Sized_dwarf_line_info): Use
- Sized_elf_reloc_mapper.
- (Sized_dwarf_line_info::symbol_section): Remove function.
- (Sized_dwarf_line_info::read_relocs): Use Sized_elf_reloc_mapper.
- (Sized_dwarf_line_info::read_line_mappings): Remove object
- parameter, adjust callers.
- (Sized_dwarf_line_info::format_file_lineno): Fix type of cast.
- * dwarf_reader.h: Include <sys/types.h>.
- (class Track_relocs): Remove forward declaration.
- (class Elf_reloc_mapper): New class.
- (class Sized_elf_reloc_mapper): New class.
- (class Dwarf_abbrev_table): New class.
- (class Dwarf_range_list): New class.
- (class Dwarf_ranges_table): New class.
- (class Dwarf_pubnames_table): New class.
- (class Dwarf_die): New class.
- (class Dwarf_info_reader): New class.
- (Sized_dwarf_line_info::read_line_mappings): Remove object parameter.
- (Sized_dwarf_line_info::symbol_section): Remove member function.
- * dynobj.h (Sized_dynobj::do_section_contents): Refactor code from
- base class.
- * gdb-index.cc: New source file.
- * gdb-index.h: New source file.
- * incremental.cc (Sized_relobj_incr::do_layout): Track .debug_info
- and .debug_types sections, call Layout::add_to_gdb_index.
- (Sized_relobj_incr::do_section_name): Implement.
- (Sized_relobj_incr::do_section_contents): Adjust parameter list and
- return type; Implement.
- (Sized_incr_dynobj::do_section_contents): Adjust parameter list and
- return type.
- * incremental.h (Sized_relobj_incr::do_section_contents): Adjust
- parameter list and return type.
- (Sized_incr_dynobj::do_section_contents): Likewise.
- * layout.cc: Include gdb-index.h.
- (Layout::Layout): Initialize gdb_index_data_.
- (Layout::init_fixed_output_section): Check for .gdb_index section.
- (Layout::add_to_gdb_index): New function. Instantiate.
- * layout.h: Add forward declaration for class Gdb_index.
- (Layout::add_to_gdb_index): New member function.
- (Layout::gdb_index_data_): New data member.
- * main.cc: Include gdb-index.h.
- (main): Print statistics for gdb index.
- * object.cc (Object::section_contents): Move code into
- do_section_contents.
- (need_decompressed_section): Check for sections needed when building
- gdb index.
- (build_compressed_section_map): Likewise.
- (Sized_relobj_file::do_read_symbols): Need local symbols when building
- gdb index.
- (Sized_relobj_file::do_layout): Track .debug_info and .debug_types
- sections; call Layout::add_to_gdb_index.
- (Sized_relobj_file::do_decompressed_section_contents): Call
- do_section_contents directly.
- * object.h (Object::do_section_contents): Adjust parameter list and
- return type.
- (Object::do_decompressed_section_contents): Call do_section_contents
- directly.
- (Sized_relobj_file::do_section_contents): Adjust parameter list and
- return type.
- * options.h (class General_options): Add --gdb-index option.
- * plugin.cc (Sized_pluginobj::do_section_contents): Adjust parameter
- list and return type.
- * plugin.h (Sized_pluginobj::do_section_contents): Likewise.
- * reloc.h (Track_relocs::checkpoint): New function.
- (Track_relocs::reset): New function.
- * testsuite/Makefile.am (gdb_index_test_1.sh, gdb_index_test_2.sh):
- New test cases.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gdb_index_test.cc: New test source file.
- * testsuite/gdb_index_test_1.sh: New test source file.
- * testsuite/gdb_index_test_2.sh: New test source file.
- 2012-03-19 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_define_standard_symbols): New method.
- (Target_arm::do_finalize_sections): Remove code which defines
- __exidx_start and __exidx_end. Make symbol table parameter
- anonymous as it is not used.
- * gold.cc (queue_middle_tasks): Call target hook to define any
- target-specific symbols.
- * target.h (Target::define_standard_symbols): New method.
- (Target::do_define_standard_symbols): Same.
- * testsuite/Makefile.am (arm_exidx_test): Dump relocations also.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_exidx.s: Generate data relocations for __exidx_start
- and __exidx_end.
- * testsuite/arm_exidx_test.sh: Check that no unused dynamic
- relocations are generated for __exidx_start and __exidx_end.
- 2012-03-16 Doug Kwan <dougkwan@google.com>
- * testsuite/Makefile.am: Disable test initpri3b.
- * testsuite/Makefile.in: Regenerate.
- 2012-03-15 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::got_section): Make .got section read-only
- if -z now is given.
- 2012-03-15 Ian Lance Taylor <iant@google.com>
- PR gold/13850
- * layout.cc (Layout::make_output_section): Correctly mark
- SHT_INIT_ARRAY, et. al., as relro.
- 2012-03-14 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Target_arm::Scan::global): Generate R_ARM_GLOB_DAT
- dynamic relocations for protected symbols in shared objects.
- 2012-03-13 Ian Lance Taylor <iant@google.com>
- * resolve.cc (Symbol_table::resolve): When merging common symbols,
- keep the larger alignment.
- 2012-03-12 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Sized_dwarf_line_info::process_one_opcode): Fix
- handling of DW_LNE_define_file.
- 2012-03-12 Cary Coutant <ccoutant@google.com>
- * reduced_debug_output.cc
- (Output_reduced_debug_info_section::get_die_end): Add new FORM
- codes to switch.
- 2012-02-29 Cary Coutant <ccoutant@google.com>
- * object.cc (need_decompressed_section): Add #ifdef ENABLE_THREADS.
- 2012-02-29 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
- Call Object::decompressed_section_contents.
- * dwarf_reader.h (Sized_dwarf_line_info::~Sized_dwarf_line_info):
- New dtor.
- (Sized_dwarf_line_info::buffer_start_): New data member.
- * merge.cc (Output_merge_data::do_add_input_section): Call
- Object::decompressed_section_contents.
- (Output_merge_string::do_add_input_section): Likewise.
- * object.cc (need_decompressed_section): New function.
- (build_compressed_section_map): Decompress sections needed later.
- (Sized_relobj_file::do_decompressed_section_contents): New function.
- (Sized_relobj_file::do_discard_decompressed_sections): New function.
- * object.h (Object::decompressed_section_contents): New function.
- (Object::discard_decompressed_sections): New function.
- (Object::do_decompressed_section_contents): New function.
- (Object::do_discard_decompressed_sections): New function.
- (Compressed_section_info): New type.
- (Compressed_section_map): Include decompressed section contents.
- (Sized_relobj_file::do_decompressed_section_contents): New function.
- (Sized_relobj_file::do_discard_decompressed_sections): New function.
- 2012-02-16 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (initpri2): Add --ctors-in-init-array option.
- * testsuite/Makefile.in: Regenerate.
- 2012-02-14 Cary Coutant <ccoutant@google.com>
- * options.cc (General_options::finalize): Disallow -pie and -static.
- 2012-02-03 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::abs8,
- Arm_relocate_functions::abs16): Use
- Bits::has_signed_unsigned_overflow32.
- (Arm_relocate_functions::thm_abs8): Correct range of
- overflow check.
- * reloc.h (Bits class): Change minimum number of bits from 0 to 1
- in assertions.
- 2012-02-02 Doug Kwan <dougkwan@google.com>
- * arm.cc (Reloc_stub::stub_type_for_reloc): Use PIC stubs in all
- position independent outputs, not just shared objects.
- 2012-01-30 H.J. Lu <hongjiu.lu@intel.com>
- * configure.ac: Check if -fpic -mtls-dialect=gnu2 works.
- * configure: Regenerated.
- 2012-01-27 Ian Lance Taylor <iant@google.com>
- * reloc.h (Bits): New class with static functions, copied from
- namespace utils in arm.cc.
- * arm.cc (namespace utils): Remove. Rewrite all uses to use Bits
- instead.
- 2012-01-27 H.J. Lu <hongjiu.lu@intel.com>
- * incremental.cc (write_info_blocks): Correct relocation offset.
- 2012-01-27 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (Relocate::tls_gd_to_ie): Support x32.
- (Relocate::tls_gd_to_le): Likewise.
- 2012-01-27 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (Scan::global): Support x32 IFUNC function pointer.
- 2012-01-27 H.J. Lu <hongjiu.lu@intel.com>
- * configure.ac: Check if -mcmodel=medium works.
- * configure: Regenerated.
- 2012-01-24 Cary Coutant <ccoutant@google.com>
- * int_encoding.cc (read_unsigned_LEB_128): Replaced with inline
- definition and ...
- (read_unsigned_LEB_128_x): ... this new function.
- (read_signed_LEB_128): Replaced with inline definition and ...
- (read_signed_LEB_128_x): ... this new function.
- * int_encoding.h (read_unsigned_LEB_128_x): New function.
- (read_unsigned_LEB_128): Add inline definition.
- (read_signed_LEB_128_x): New function.
- (read_signed_LEB_128): Add inline definition.
- * testsuite/Makefile.am (leb128_unittest): New unit test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/leb128_unittest.cc: New unit test.
- 2012-01-23 Ian Lance Taylor <iant@google.com>
- PR gold/13617
- * i386.cc (Target_i386::do_code_fill): When using a jmp
- instruction, pad with nop instructions.
- * x86_64.cc (Target_x86_64::do_code_fill): Likewise.
- 2012-01-22 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (gc_process_relocs): Add typename on types used in
- template.
- (scan_relocs): Likewise.
- (relocate_section): Likewise.
- (apply_relocation): Likewise.
- 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc (Scan::check_non_pic): Allow R_X86_64_32 for x32.
- (Scan::local): Use R_X86_64_RELATIVE relocation for R_X86_64_32
- under x32.
- 2012-01-09 H.J. Lu <hongjiu.lu@intel.com>
- * x86_64.cc: Initial support for x32.
- 2012-01-03 Cary Coutant <ccoutant@google.com>
- * gold/incremental.cc (Sized_incremental_binary::do_process_got_plt):
- Use abstract base class for GOT.
- * gold/output.h (class Output_data_got_base): New abstract base class.
- (class Output_data_got): Derive from new base class, adjust ctors.
- (Output_data_got::reserve_slot): Make virtual; rename to
- do_reserve_slot; Adjust callers.
- * gold/target.h (Sized_target::init_got_plt_for_update): Return
- pointer to abstract base class.
- * gold/x86_64.cc (Target_x86_64::init_got_plt_for_update): Likewise.
- 2011-12-18 Ian Lance Taylor <iant@google.com>
- * object.h (Relobj::local_symbol_value): New function.
- (Relobj::local_plt_offset): New function.
- (Relobj::local_has_got_offset): New function.
- (Relobj::local_got_offset): New function.
- (Relobj::set_local_got_offset): New function.
- (Relobj::do_local_symbol_value): New pure virtual function.
- (Relobj::do_local_plt_offset): Likewise.
- (Relobj::do_local_has_got_offset): Likewise.
- (Relobj::do_local_got_offset): Likewise.
- (Relobj::do_set_local_got_offset): Likewise.
- (Sized_relobj::do_local_has_got_offset): Rename from
- local_has_got_offset.
- (Sized_relobj::do_local_got_offset): Rename from local_got_offset.
- (Sized_relobj::do_set_local_got_offset): Rename from
- set_local_got_offset.
- (Sized_relobj_file::do_local_plt_offset): Rename from
- local_plt_offset.
- (Sized_relobj_file::do_local_symbol_value): New function.
- * object.cc (Sized_relobj_file::do_local_plt_offset): Rename from
- local_plt_offset.
- * output.cc (Output_data_got::Got_entry::write): Change object to
- Relobj. Use local_symbol_value.
- (Output_data_got::add_global_with_rel): Change rel_dyn to
- Output_data_reloc_generic*. Use add_global_generic.
- (Output_data_got::add_global_with_rela): Remove. Change all
- callers to use add_global_with_rel.
- (Output_data_got::add_global_pair_with_rel): Change rel_dyn to
- Output_data_reloc_generic*. Use add_global_generic.
- (Output_data_got::add_global_pair_with_rela): Remove. Change all
- callers to use add_global_pair_with_rel.
- (Output_data_got::add_local): Change object to Relobj*.
- (Output_data_got::add_local_plt): Likewise.
- (Output_data_got::add_local_with_rel): Change object to Relobj*,
- change rel_dyn to Output_data_reloc_generic*. Use
- add_local_generic.
- (Output_data_got::add_local_with_rela): Remove. Change all
- callers to use all_local_with_rel.
- (Output_data_got::add_local_pair_with_rel): Change object to
- Relobj*, change rel_dyn to Output_data_reloc_generic*. Use
- add_output_section_generic.
- (Output_data_got::add_local_pair_with_rela): Remove. Change all
- callers to use add_local_pair_with_rel.
- (Output_data_got::reserve_local): Change object to Relobj*.
- * output.h: (class Output_data_reloc_generic): Add pure virtual
- declarations for add_global_generic, add_local_generic,
- add_output_section_generic.
- (class Output_data_reloc) [SHT_REL, SHT_RELA]: Implement new
- functions for Output_data_reloc_generic. Update declarations for
- changes listed in output.cc.
- (class Output_data_got): Change template parameter to got_size.
- Don't define Rel_dyn or Rela_dyn. Update declarations per above.
- * incremental.h (Sized_relobj_incr::do_local_symbol_value): New
- function.
- (Sized_relobj_incr::do_local_plt_offset): New function.
- * copy-relocs.cc (Copy_relocs::Copy_reloc_entry::emit): Call
- add_global_generic.
- 2011-12-17 Cary Coutant <ccoutant@google.com>
- * dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Add casts.
- * resolve.cc (Symbol_table::resolve): Likewise.
- * i386.cc (Target_i386::do_code_fill): Use char constants for nop
- arrays.
- * x86_64.cc (Target_x86_64::do_code_fill): Likewise.
- 2011-12-16 Ian Lance Taylor <iant@google.com>
- * output.h (Output_data_reloc_generic::add): Only call
- add_dynamic_reloc if this is a dynamic reloc section.
- 2011-12-15 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/13505
- * target-reloc.h (apply_relocation): Replace <64, false> with
- <size, big_endian>.
- 2011-11-25 Nick Clifton <nickc@redhat.com>
- * po/it.po: New Italian translation.
- 2011-11-17 Sterling Augustine <saugustine@google.com>
- * script.cc (script_include_directive): Implement.
- (read_script_file): New local variables name and search_path. Update
- comment. Call IS_ABSOLUTE_PATH and Dirsearch::find_file_in_dir_list.
- * dirsearch.h (Dirsearch::find_file_in_dir_list): Declare new method.
- * dirsearch.cc (Dirsearch::find_file_in_dir_list): Implement it.
- 2011-11-11 Sterling Augustine <saugustine@google.com>
- * yyscript.y (section_cmd): Add support for INCLUDE directive.
- (file_or_sections_cmd): Likewise.
- 2011-11-11 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_make_elf_object): Allow executable also
- if --just-symbols is given.
- 2011-11-10 Doug Kwan <dougkwan@google.com>
- PR gold/13362
- * arm.cc (Target_arm::Relocate::relocate_tls): Do unaligned accesses
- when processing data relocs.
- * reloc.h (Relocate_functions::rel_unaligned): New method.
- (Relocate_functions::pcrel_unaligned): Ditto.
- (Relocate_functions::rel32_unaligned): Ditto.
- (Relocate_functions::pcrel32_unaligned): Ditto.
- 2011-11-09 Doug Kwan <dougkwan@google.com>
- PR gold/13362
- * arm.cc (Arm_scan_relocatable_relocs::Default_scan_relocatable_relocs):
- Use unaligned 4-byte relocs for static 32-bit data as required by EABI.
- * reloc.h (Relocatable_relocs::Reloc_strategy): New enum
- RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
- (Relocate_functions::rel_unaligned): New.
- (Relocate_functions::rel32_unaligned): New.
- * target-reloc.h (relocate_for_relocatable): Add code to handle
- RELOC_ADJUST_FOR_SECTION_4_UNALIGNED.
- * testsuite/Makefile.am (arm_unaligned_reloc_r.stdout,
- arm_unaligned_reloc_r): New targets.
- * testsuite/Makefile.in: Regenerate.
- * arm_unaligned_reloc.sh: Check unaligned relocs in relocatable
- linking.
- 2011-11-02 Ian Lance Taylor <iant@google.com>
- * configure.ac: Add --with-lib-path option. Define LIB_PATH and
- NATIVE_LINKER.
- * Makefile.am (AM_CPPFLAGS): Define TOOLLIBDIR.
- * options.cc (General_options::finalize): Use library search path
- from configure script if specified. If not native and no sysroot,
- only search TOOLLIBDIR.
- * options.h (Search_directory::Search_directory): Change name to
- const std::string&.
- (General_options::add_to_library_path_with_sysroot): Change arg to
- const std::string&.
- * configure, Makefile.in, config.in: Rebuild.
- 2011-11-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
- * arm.cc (Target_arm::may_use_v5t_interworking): Check whether
- we are working around the ARM1176 Erratum.
- * options.h (General_options::fix_arm1176): Add option.
- * testsuite/Makefile.am: Add testcases, and keep current ones
- working.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_fix_1176.s: New file.
- * testsuite/arm_fix_1176.sh: Likewise.
- 2011-11-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
- * arm.cc (Target_arm::Target_arm): Remove initialisation of
- may_use_blx_.
- (Target_arm::may_use_blx): Remove method.
- (Target_arm::set_may_use_blx): Likewise.
- (Target_arm::may_use_v4t_interworking): New method.
- (Target_arm::may_use_v5t_interworking): Likewise.
- (Target_arm::may_use_blx_): Remove member variable.
- (Arm_relocate_functions::arm_branch_common): Check for v5T
- interworking.
- (Arm_relocate_functions::thumb_branch_common): Likewise.
- (Reloc_stub::stub_type_for_reloc): Likewise.
- (Target_arm::do_finalize_sections): Correct interworking checks.
- * testsuite/Makefile.am: Add new tests.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_farcall_arm_arm.s: New test.
- * testsuite/arm_farcall_arm_arm.sh: Likewise.
- * testsuite/arm_farcall_arm_thumb.s: Likewise.
- * testsuite/arm_farcall_arm_thumb.sh: Likewise.
- * testsuite/arm_farcall_thumb_arm.s: Likewise.
- * testsuite/arm_farcall_thumb_arm.sh: Likewise.
- * testsuite/arm_farcall_thumb_thumb.s: Likewise.
- * testsuite/arm_farcall_thumb_thumb.sh: Likewise.
- 2011-10-31 Cary Coutant <ccoutant@google.com>
- PR gold/13023
- * expression.cc (Expression::eval_with_dot): Add
- is_section_dot_assignment parameter.
- (Expression::eval_maybe_dot): Likewise. Adjust value when rhs is
- absolute and assigning to dot within a section.
- * script-sections.cc
- (Output_section_element_assignment::set_section_addresses): Pass
- dot_section to set_if_absolute.
- (Output_section_element_dot_assignment::finalize_symbols): Pass TRUE
- as is_section_dot_assignment flag to eval_with_dot.
- (Output_section_element_dot_assignment::set_section_addresses):
- Likewise.
- * script.cc (Symbol_assignment::set_if_absolute): Add dot_section
- parameter. Also set value if relative to dot_section; set the
- symbol's output_section.
- * script.h (Expression::eval_with_dot): Add is_section_dot_assignment
- parameter. Adjust all callers.
- (Expression::eval_maybe_dot): Likewise.
- (Symbol_assignment::set_if_absolute): Add dot_section parameter.
- Adjust all callers.
- * testsuite/script_test_2.t: Test assignment of an absolute value
- to dot within an output section element.
- 2011-10-31 Cary Coutant <ccoutant@google.com>
- * options.h (class General_options): Add --[no-]gnu-unique options.
- * symtab.cc (Symbol_table::sized_write_globals): Convert
- STB_GNU_UNIQUE to STB_GLOBAL if --no-gnu-unique.
- 2011-10-31 Cary Coutant <ccoutant@google.com>
- PR gold/13359
- * i386.cc (Target_i386::Relocate::relocate_tls): Remove
- unnecessary assertion.
- * x86_64.cc (Target_x86_64::Relocate::relocate_tls): Likewise.
- 2011-10-31 Sriraman Tallam <tmsriram@google.com>
- * symtab.h (Symbol_table::gc_mark_symbol_for_shlib): Rename to
- gc_mark_symbol.
- * symtab.cc (Symbol_table::gc_mark_symbol_for_shlib): Rename to
- gc_mark_symbol.
- Change to just keep the section associated with symbol.
- (Symbol_table::add_from_relobj): Mark symbols as not garbage when
- they are externally visible and --export-dynamic is turned on.
- (Symbol_table::gc_mark_dyn_syms): Call gc_mark_symbol.
- 2011-10-19 Ian Lance Taylor <iant@google.com>
- PR gold/13163
- * script-sections.cc
- (Output_section_element_dot_assignment::needs_output_section): New
- function.
- 2011-10-19 Ian Lance Taylor <iant@google.com>
- PR gold/13204
- * layout.cc (Layout::segment_precedes): Don't assert failure if a
- --section-start option was seen.
- * options.h (General_options::any_section_start): New function.
- 2011-10-18 David S. Miller <davem@davemloft.net>
- PR binutils/13301
- * sparc.cc (Target_sparc::Relocate::reloc_adjust_addr_): New
- member to track relocation locations that have moved during TLS
- reloc optimizations.
- (Target_sparc::Relocate::Relocate): Initialize to NULL.
- (Target_sparc::Relocate::relocate): Adjust view down by 4
- bytes if it matches reloc_adjust_addr_.
- (Target_sparc::Relocate::relocate_tls): Always move the
- __tls_get_addr call delay slot instruction forward 4 bytes when
- performing relaxation.
- 2011-10-18 Cary Coutant <ccoutant@google.com>
- * output.cc (posix_fallocate): Return 0 on success, errno on failure.
- (Output_file::map_no_anonymous): Check for non-zero
- return code from posix_fallocate.
- 2011-10-17 Cary Coutant <ccoutant@google.com>
- PR gold/13245
- * plugin.cc (is_visible_from_outside): Check for symbols
- referenced from dynamic objects.
- * resolve.cc (Symbol_table::resolve): Don't count references
- from dynamic objects as references from real ELF files.
- * testsuite/plugin_test_2.sh: Adjust expected result.
- 2011-10-17 Cary Coutant <ccoutant@google.com>
- * gold.cc: Include timer.h.
- (queue_middle_tasks): Stamp time.
- (queue_final_tasks): Likewise.
- * main.cc (main): Store timer in parameters. Print timers
- for each pass.
- * parameters.cc (Parameters::Parameters): Initialize timer_.
- (Parameters::set_timer): New function.
- (set_parameters_timer): New function.
- * parameters.h (Parameters::set_timer): New function.
- (Parameters::timer): New function.
- (Parameters::timer_): New data member.
- (set_parameters_timer): New function.
- * timer.cc (Timer::stamp): New function.
- (Timer::get_pass_time): New function.
- * timer.h (Timer::stamp): New function.
- (Timer::get_pass_time): New function.
- (Timer::pass_times_): New data member.
- 2011-10-17 Cary Coutant <ccoutant@google.com>
- * readsyms.cc (Read_symbols::run): Don't queue an unblocker
- task for members of lib groups.
- 2011-10-17 Cary Coutant <ccoutant@google.com>
- PR gold/13288
- * fileread.cc (File_read::find_view): Add assert.
- (File_read::make_view): Move bounds check (replace with assert)...
- (File_read::find_or_make_view): ... to here.
- 2011-10-12 Cary Coutant <ccoutant@google.com>
- * output.cc (Output_file::open_base_file): Handle case where
- ::read returns less than requested size.
- 2011-10-10 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_relobj_incr::Sized_relobj_incr):
- Initialize defined_count_.
- (Sized_relobj_incr::do_add_symbols): Count defined symbols.
- (Sized_relobj_incr::do_get_global_symbol_counts): Rewrite.
- (Sized_incr_dynobj::Sized_incr_dynobj): Initialize defined_count_.
- (Sized_incr_dynobj::do_add_symbols): Count defined symbols.
- (Sized_incr_dynobj::do_get_global_symbol_counts): Rewrite.
- * incremental.h (Sized_relobj_incr::defined_count_): New data
- member.
- (Sized_incr_dynobj::defined_count_): New data member.
- * plugin.cc (Sized_pluginobj::do_get_global_symbol_counts):
- Return zeroes instead of internal error.
- 2011-10-10 Cary Coutant <ccoutant@google.com>
- PR gold/13249
- * output.cc (Output_reloc::Output_reloc): Add use_plt_offset flag.
- (Output_reloc::symbol_value): Return PLT offset if flag is set.
- * output.h (class Output_reloc): Add use_plt_offset flag.
- (Output_reloc::type_): Adjust size of bit field.
- (Output_reloc::use_plt_offset_): New bit field.
- (class Output_data_reloc): Adjust all calls to Output_reloc_type.
- (Output_data_reloc::add_local_relative): (RELA only) Add use_plt_offset
- flag. Adjust all callers.
- * x86_64.cc (Target_x86_64::Scan::local): Check for IFUNC when
- creating RELATIVE relocations.
- 2011-10-10 Nick Clifton <nickc@redhat.com>
- * po/es.po: Updated Spanish translation.
- * po/fi.po: Updated Finnish translation.
- 2011-10-03 Diego Novillo <dnovillo@google.com>
- * options.cc (parse_uint): Fix dereference of RETVAL.
- 2011-09-29 Sriraman Tallam <tmsriram@google.com>
- * layout.h (section_order_map_): New member.
- (get_section_order_map): New member function.
- * output.cc (Output_section::add_input_section): Check for patterns
- only when --section-ordering-file is specified.
- * gold.cc (queue_middle_tasks): Delay updating order of sections till
- output_sections have been formed.
- * layout.cc (Layout_Layout): Initialize section_order_map_.
- * plugin.cc (update_section_order): Store order in order_map. Do not
- update the order.
- * testsuite/Makefile.am: Add test case for plugin_final_layout.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_section_order.c: New file.
- * testsuite/plugin_final_layout.cc: New file.
- * testsuite/plugin_final_layout.sh: New file.
- 2011-09-29 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_incremental_binary::do_process_got_plt):
- Check for NULL.
- * symtab.cc (Symbol_table::add_from_relobj): Ignore version
- symbols during incremental update.
- (Symbol_table::add_from_dynobj): Likewise.
- 2011-09-27 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::define_special_symbol): Always
- canonicalize version string.
- 2011-09-26 Cary Coutant <ccoutant@google.com>
- * gold.cc (queue_initial_tasks): Move option checks ...
- * options.cc (General_options::finalize): ... to here. Disable
- some options; make others fatal.
- 2011-09-26 Cary Coutant <ccoutant@google.com>
- gcc PR lto/47247
- * plugin.cc (get_symbols_v2): New function.
- (Plugin::load): Add LDPT_GET_SYMBOLS_V2.
- (is_referenced_from_outside): New function.
- (Pluginobj::get_symbol_resolution_info): Add version parameter, return
- LDPR_PREVAILING_DEF_IRONLY_EXP when using new version.
- (get_symbols): Pass version parameter.
- (get_symbols_v2): New function.
- * plugin.h (Pluginobj::get_symbol_resolution_info): Add version
- parameter.
- * testsuite/plugin_test.c (get_symbols_v2): New static variable.
- (onload): Add LDPT_GET_SYMBOLS_V2.
- (all_symbols_read_hook): Use get_symbols_v2; check for
- LDPR_PREVAILING_DEF_IRONLY_EXP.
- * testsuite/plugin_test_3.sh: Update expected results.
- 2011-09-23 Simon Baldwin <simonb@google.com>
- * configure.ac: Add new --with-gold-ldadd and --with-gold-ldflags
- configuration options.
- * configure: Regenerate.
- * Makefile.am: Handle GOLD_LDADD and GOLD_LDFLAGS.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2011-09-19 Sriraman Tallam <tmsriram@google.com>
- * plugin.h (should_defer_layout): Modify to check for any_claimed_.
- 2011-09-19 Cary Coutant <ccoutant@google.com>
- * incremental.cc (can_incremental_update): Fix typo in comment.
- * incremental.h (can_incremental_update): Likewise.
- 2011-09-18 Cary Coutant <ccoutant@google.com>
- * incremental.cc (can_incremental_update): New function.
- * incremental.h (can_incremental_update): New function.
- * layout.cc (Layout::init_fixed_output_section): Call it.
- (Layout::make_output_section): Don't allow patch space in .eh_frame.
- * object.cc (Sized_relobj_file::do_layout): Call
- can_incremental_update.
- 2011-09-13 Cary Coutant <ccoutant@google.com>
- * configure.ac: Check for glibc support for gnu_indirect_function
- support with static linking, setting automake conditional
- IFUNC_STATIC.
- * Makefile.in: Regenerate.
- * configure: Regenerate.
- * testsuite/Makefile.am (ifuncmain1static, ifuncmain2static)
- (ifuncmain4static, ifuncmain5static, ifuncmain7static): Add check
- for IFUNC_STATIC.
- * testsuite/Makefile.in: Regenerate.
- 2011-09-13 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_relobj_incr::do_layout): Call
- report_comdat_group for kept comdat sections.
- * testsuite/Makefile.am (incremental_comdat_test_1): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/incr_comdat_test_1.cc: New source file.
- * testsuite/incr_comdat_test_2_v1.cc: New source file.
- * testsuite/incr_comdat_test_2_v2.cc: New source file.
- * testsuite/incr_comdat_test_2_v3.cc: New source file.
- 2011-09-13 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj_file::do_layout): Remove unused local
- variable external_symbols_offset.
- 2011-09-12 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj_file::do_layout): Remove assertion which
- triggered if object has no symbols.
- 2011-09-09 David S. Miller <davem@davemloft.net>
- * output.cc (Output_fill_debug_info::do_write): Use Swap_unaligned.
- (Output_fill_debug_line::do_write): Likewise.
- 2011-08-29 Cary Coutant <ccoutant@google.com>
- * output.cc: (Output_fill_debug_info::do_minimum_hole_size): Add
- casts to match formatting specs.
- (Output_fill_debug_line::do_minimum_hole_size): Likewise.
- 2011-08-26 Cary Coutant <ccoutant@google.com>
- * layout.cc (Free_list::allocate): Provide guarantee of minimum
- remaining hole size when allocating.
- (Layout::make_output_section): Set fill methods for debug sections.
- * layout.h (Free_list::Free_list_node): Move from private to
- public.
- (Free_list::set_min_hole_size): New function.
- (Free_list::begin, Free_list::end): New functions.
- (Free_list::min_hole_): New data member.
- * output.cc: Include dwarf.h.
- (Output_fill_debug_info::do_minimum_hole_size): New function.
- (Output_fill_debug_info::do_write): New function.
- (Output_fill_debug_line::do_minimum_hole_size): New function.
- (Output_fill_debug_line::do_write): New function.
- (Output_section::Output_section): Initialize new data member.
- (Output_section::set_final_data_size): Ensure patch space is larger
- than minimum hole size.
- (Output_section::do_write): Fill holes in debug sections.
- * output.h (Output_fill): New class.
- (Output_fill_debug_info): New class.
- (Output_fill_debug_line): New class.
- (Output_section::set_free_space_fill): New function.
- (Output_section::free_space_fill_): New data member.
- * testsuite/Makefile.am (incremental_test_3): Add
- --incremental-patch option.
- (incremental_test_4): Likewise.
- (incremental_test_5): Likewise.
- (incremental_test_6): Likewise.
- (incremental_copy_test): Likewise.
- (incremental_common_test_1): Likewise.
- * testsuite/Makefile.in: Regenerate.
- 2011-08-26 Nick Clifton <nickc@redhat.com>
- * po/es.po: Updated Spanish translation.
- 2011-08-01 Cary Coutant <ccoutant@google.com>
- * gold/testsuite/Makefile.am (justsyms_exec): New testcase.
- * gold/testsuite/Makefile.in: Regenerate.
- * gold/testsuite/justsyms_exec.c: New source file.
- * gold/testsuite/justsyms_lib.c: New source file.
- 2011-08-01 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::set_segment_offsets): Don't realign text
- segment if -Ttext was specified.
- * object.cc (Sized_relobj_file::Sized_relobj_file): Store the ELF
- file type.
- * object.h (Sized_relobj_file::e_type): New function.
- (Sized_relobj_file::e_type_): New data member.
- * symtab.cc (Symbol_table::add_from_relobj): Don't add section
- base address for ET_EXEC files.
- * target.cc (Target::do_make_elf_object_implementation): Allow
- ET_EXEC files with --just-symbols option.
- 2011-07-28 Cary Coutant <ccoutant@google.com>
- * workqueue-internal.h (Workqueue_threader::should_cancel_thread):
- Add thread_number parameter.
- (Workqueue_threader_threadpool::should_cancel_thread): Likewise.
- * workqueue-threads.cc
- (Workqueue_threader_threadpool::should_cancel_thread): Cancel
- current thread if its thread number is greater than desired thread
- count.
- * workqueue.cc (Workqueue_threader_single::should_cancel_thread):
- Add thread_number parameter.
- (Workqueue::should_cancel_thread): Likewise.
- (Workqueue::find_runnable_or_wait): Pass thread_number to
- should_cancel_thread.
- * workqueue.h (Workqueue::should_cancel_thread): Add thread_number
- parameter.
- 2011-07-22 Sriraman Tallam <tmsriram@google.com>
- * symtab.cc (Symbol_table::add_from_relobj): Mark symbol as referenced
- only after checking if it cannot be forced local.
- * symtab.h (is_externally_visible): Check if the symbol is not forced
- local.
- 2011-07-15 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add --print-output-format.
- Move -EL next to -EB, for better --help output.
- * target-select.cc: Include <cstdio>, "options.h", and
- "parameters.h".
- (Target_selector::do_target_bfd_name): New function.
- (print_output_format): New function.
- * target-select.h (class Target_selector): Update declarations.
- (Target_selector::target_bfd_name): New function.
- (print_output_format): Declare.
- * main.cc: Include "target-select.h".
- (main): Handle --print-output-format.
- * gold.cc: Include "target-select.h".
- (queue_initial_tasks): Handle --print-output-format when there are
- no input files.
- * parameters.cc (parameters_force_valid_target): Give a better
- error message if -EB/-EL does not match target.
- * freebsd.h (Target_selector_freebsd::do_target_bfd_name): New
- function.
- 2011-07-15 Ian Lance Taylor <iant@google.com>
- * i386.cc (class Output_data_plt_i386): Add layout_ field.
- (Output_data_plt_i386::Output_data_plt_i386): Initialize layout_.
- (Output_data_plt_i386::do_write): Write address of .dynamic
- section to first entry in .got.plt section.
- * x86_64.cc (class Output_data_plt_x86_64): Add layout_ field.
- (Output_data_plt_x86_64::Output_data_plt_x86_64) [both versions]:
- Initialize layout_.
- (Output_data_plt_x86_64::do_write): Write address of .dynamic
- section to first entry in .got.plt section.
- * layout.h (Layout::dynamic_section): New function.
- 2011-07-13 Sriraman Tallam <tmsriram@google.com>
- * archive.cc (Archive::get_elf_object_for_member): Add extra parameter
- to claim_file call.
- * layout.cc (Layout::Layout): Initialize section_ordering_specified_,
- input_section_position_, and input_section_glob_.
- (read_layout_from_file): Call function section_ordering_specified.
- * layout.h (is_section_ordering_specified): New function.
- (section_ordering_specified): New function.
- (section_ordering_specified_): New boolean member.
- * main.cc(main): Call load_plugins after layout object is defined.
- * output.cc (Output_section::add_input_section): Use
- function section_ordering_specified to check if section ordering is
- needed.
- * output.cc (Output_section::add_relaxed_input_section): Use
- function section_ordering_specified to check if section ordering is
- needed.
- (Output_section::update_section_layout): New function.
- (Output_section::sort_attached_input_sections): Check if input section
- must be reordered.
- * output.h (Output_section::update_section_layout): New function.
- * plugin.cc (get_section_count): New function.
- (get_section_type): New function.
- (get_section_name): New function.
- (get_section_contents): New function.
- (update_section_order): New function.
- (allow_section_ordering): New function.
- (Plugin::load): Add the new interfaces to the transfer vector.
- (Plugin_manager::load_plugins): New parameter.
- (Plugin_manager::all_symbols_read): New parameter.
- (Plugin_manager::claim_file): New parameter. Save the elf object for
- unclaimed objects.
- (Plugin_manager::get_elf_object): New function.
- (Plugin_manager::get_view): Change to directly use the bool to check
- if get_view is called from claim_file_hook.
- * plugin.h (input_objects): New function
- (Plugin__manager::load_plugins): New parameter.
- (Plugin_manager::claim_file): New parameter.
- (Plugin_manager::get_elf_object): New function.
- (Plugin_manager::in_claim_file_handler): New function.
- (Plugin_manager::in_claim_file_handler_): New member.
- (layout): New function.
- * readsyms.cc (Read_symbols::do_read_symbols): Call the claim_file
- handler with an extra parameter. Make the elf object before calling
- claim_file handler.
- * testsuite/plugin_test.c (get_section_count): New function pointer.
- (get_section_type): New function pointer.
- (get_section_name): New function pointer.
- (get_section_contents): New function pointer.
- (update_section_order): New function pointer.
- (allow_section_ordering): New function pointer.
- (onload): Check if the new interfaces exist.
- 2011-07-13 Ian Lance Taylor <iant@google.com>
- * i386.cc (Target_i386::got_section): If -z now, make .got.plt a
- relro section.
- * x86_64.cc (Target_x86_64::got_section): Likewise.
- * testsuite/Makefile.am (check_PROGRAMS): Add relro_now_test.
- (relro_now_test_SOURCES): New variable.
- (relro_now_test_DEPENDENCIES): New variable.
- (relro_now_test_LDFLAGS): New variable.
- (relro_now_test_LDADD): New variable.
- (relro_now_test.so): New target.
- * testsuite/Makefile.in: Rebuild.
- 2011-07-12 Ian Lance Taylor <iant@google.com>
- PR gold/12980
- * i386.cc (Target_i386::Scan::global): For a GOT reloc, use a
- GLOB_DAT relocation rather than a RELATIVE relocation for a
- protected symbol when creating a shared library.
- * x86_64.cc (Target_x86_64::Scan::global): Likewise.
- * testsuite/protected_1.cc (f2, get_f2_addr): New functions.
- * testsuite/protected_main_1.cc (main): Test that protected
- function has same address.
- 2011-07-11 Ian Lance Taylor <iant@google.com>
- PR gold/12979
- * options.h (class General_options): Add -Bgroup.
- * options.cc (General_options::finalize): If -Bgroup is set,
- default to --unresolved-symbols=report-all.
- * layout.cc (Layout::finish_dynamic_section): Implement -Bgroup.
- * target-reloc.h (issue_undefined_symbol_error): Handle
- --unresolved-symbols=report-all.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- PR gold/11985
- * layout.cc (Layout::create_initial_dynamic_sections): Don't crash
- if linker script discards key sections.
- (Layout::create_dynamic_symtab): Likewise.
- (Layout::assign_local_dynsym_offsets): Likewise.
- (Layout::sized_create_version_sections): Likewise.
- (Layout::create_interp): Likewise.
- (Layout::finish_dynamic_section): Likewise.
- (Layout::set_dynamic_symbol_size): Likewise.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- PR gold/12386
- * options.h (class General_options): Add --unresolved-symbols.
- * target-reloc.h (issue_undefined_symbol_error): Check
- --unresolved-symbols. Add comments.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- * testsuite/odr_violation2.cc (Ordering::operator()): Make
- expression more complex.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- PR gold/11317
- * target-reloc.h (issue_undefined_symbol_error): New inline
- function, broken out of relocate_section.
- (relocate_section): Call issue_undefined_symbol_error.
- * i386.cc (Target_i386::Relocate::relocate_tls): Don't crash if
- there is no TLS segment if we are about to issue an undefined
- symbol error.
- * x86_64.cc (Target_x86_64::relocate_tls): Likewise.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- PR gold/12279
- * resolve.cc (Symbol_table::should_override): Add fromtype
- parameter. Change all callers. Give error when linking together
- TLS and non-TLS symbol.
- (Symbol_table::should_override_with_special): Add fromtype
- parameter. Change all callers.
- * i386.cc (Target_i386::Relocate::relocate_tls): Don't crash if
- there is no TLS segment if we have reported some errors.
- * x86_64.cc (Target_x86_64::relocate_tls): Likewise.
- 2011-07-08 Ian Lance Taylor <iant@google.com>
- PR gold/12372
- * target.h (Target::plt_address_for_global): New function.
- (Target::plt_address_for_local): New function.
- (Target::plt_section_for_global): Remove.
- (Target::plt_section_for_local): Remove.
- (Target::do_plt_address_for_global): New virtual function.
- (Target::do_plt_address_for_local): New virtual function.
- (Target::do_plt_section_for_global): Remove.
- (Target::do_plt_section_for_local): Remove.
- (Target::register_global_plt_entry): Add Symbol_table and Layout
- parameters.
- * output.cc (Output_data_got::Got_entry::write): Use
- plt_address_for_global and plt_address_for_local.
- * layout.cc (Layout::add_target_dynamic_tags): Use size and
- address of output section.
- * i386.cc (class Output_data_plt_i386): Add irelative_rel_,
- got_irelative_, and irelative_count_ fields. Update
- declarations.
- (Output_data_plt_i386::has_irelative_section): New function.
- (Output_data_plt_i386::entry_count): Add irelative_count_.
- (Output_data_plt_i386::set_final_data_size): Likewise.
- (class Target_i386): Add got_irelative_ and rel_irelative_
- fields. Update declarations.
- (Target_i386::Target_i386): Initialize new fields.
- (Target_i386::do_plt_address_for_global): New function replacing
- do_plt_section_for_global.
- (Target_i386::do_plt_address_for_local): New function replacing
- do_plt_section_for_local.
- (Target_i386::got_section): Create got_irelative_.
- (Target_i386::rel_irelative_section): New function.
- (Output_data_plt_i386::Output_data_plt_i386): Initialize new
- fields. Don't define __rel_iplt_{start,end}.
- (Output_data_plt_i386::add_entry): Add symtab and layout
- parameters. Change all callers. Use different PLT and GOT for
- IFUNC symbols.
- (Output_data_plt_i386::add_local_ifunc_entry): Add symtab and
- layout parameters. Change all callers. Use different PLT and
- GOT.
- (Output_data_plt_i386::rel_tls_desc): Fix formatting.
- (Output_data_plt_i386::rel_irelative): New function.
- (Output_data_plt_i386::address_for_global): New function.
- (Output_data_plt_i386::address_for_local): New function.
- (Output_data_plt_i386::do_write): Write out IRELATIVE area. Use
- IRELATIVE GOT when changing IFUNC GOT entries.
- (Target_i386::Scan::global): Use IRELATIVE GOT for IRELATIVE
- reloc.
- (Target_i386::do_finalize_sections): Create the __rel_iplt symbols
- if we didn't create an IRELATIVE GOT.
- (Target_i386::Relocate::relocate): Use plt_address_for_global and
- plt_address_for_local.
- (Target_i386::do_dynsym_value): Use plt_address_for_global.
- * x86_64.cc (class Output_data_plt_x86_64): Add irelative_rel_,
- got_irelative_, and irelative_count_ fields. Update
- declarations.
- (Output_data_plt_x86_64::Output_data_plt_x86_64) [both versions]:
- Initialize new fields. Remove symtab parameter. Change all
- callers.
- (Output_data_plt_x86_64::get_tlsdesc_plt_offset): Add
- irelative_count_.
- (Output_data_plt_x86_64::has_irelative_section): New function.
- (Output_data_plt_x86_64::entry_count): Add irelative_count_.
- (class Target_x86_64): Add got_irelative_ and rel_irelative_
- fields. Update declarations.
- (Target_x86_64::Target_x86_64): Initialize new fields.
- (Target_x86_64::do_plt_address_for_global): New function replacing
- do_plt_section_for_global.
- (Target_x86_64::do_plt_address_for_local): New function replacing
- do_plt_section_for_local.
- (Target_x86_64::got_section): Create got_irelative_.
- (Target_x86_64::rela_irelative_section): New function.
- (Output_data_plt_x86_64::init): Remove symtab parameter. Change
- all callers. Don't create __rel_iplt_{start,end}.
- (Output_data_plt_x86_64::add_entry): Add symtab and layout
- parameters. Change all callers. Use different PLT and GOT for
- IFUNC symbols.
- (Output_data_plt_x86_64::add_local_ifunc_entry): Add symtab and
- layout parameters. Change all callers. Use different PLT and
- GOT.
- (Output_data_plt_x86_64::add_relocation): Add symtab and layout
- parameters. Change all callers. Use different PLT and GOT for
- IFUNC symbols.
- (Output_data_plt_x86_64::rela_tlsdesc): Fix formatting.
- (Output_data_plt_x86_64::rela_irelative): New function.
- (Output_data_plt_x86_64::address_for_global): New function.
- (Output_data_plt_x86_64::address_for_local): New function.
- (Output_data_plt_x86_64::set_final_data_size): Likewise.
- (Output_data_plt_x86_64::do_write): Write out IRELATIVE area.
- (Target_x86_64::init_got_plt_for_update): Create got_irelative_.
- (Target_x86_64::register_global_plt_entry): Add symtab and layout
- parameters.
- (Target_x86_64::Scan::global): Use IRELATIVE GOT for IRELATIVE
- reloc.
- (Target_x86_64::do_finalize_sections): Create the __rela_iplt
- symbols if we didn't create an IRELATIVE GOT.
- (Target_x86_64::Relocate::relocate): Use plt_address_for_global and
- plt_address_for_local.
- (Target_x86_64::do_dynsym_value): Use plt_address_for_global.
- * testsuite/ifuncvar1.c: New test file.
- * testsuite/ifuncvar2.c: New test file.
- * testsuite/ifuncvar3.c: New test file.
- * testsuite/Makefile.am (check_PROGRAMS): Add ifuncvar.
- (ifuncvar1_pic.o, ifuncvar2_pic.o, ifuncvar.so): New targets.
- (ifuncvar_SOURCES, ifuncvar_DEPENDENCIES): New variables.
- (ifuncvar_LDFLAGS, ifuncvar_LDADD): New variables.
- * testsuite/Makefile.in: Rebuild.
- 2011-07-07 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (two_file_test_1_v1_ndebug.o): New target.
- (two_file_test_1_ndebug.o): Likewise.
- (two_file_test_1b_ndebug.o): Likewise.
- (two_file_test_2_ndebug.o): Likewise.
- (two_file_test_main_ndebug.o): Likewise.
- (incremental_test_2): Link with no-debug versions.
- 2011-07-06 Cary Coutant <ccoutant@google.com>
- * gold/incremental.cc
- (Output_section_incremental_inputs::write_info_blocks): Check for
- hidden and internal symbols.
- 2011-07-06 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_incremental_binary::do_file_has_changed):
- Check disposition for startup file.
- (Incremental_inputs::report_command_line): Ignore
- --incremental-startup-unchanged option.
- * options.cc (General_options::parse_incremental_startup_unchanged):
- New function.
- (General_options::General_options): Initialize new data member.
- * options.h (Incremental_disposition): Add INCREMENTAL_STARTUP.
- (General_options): Add --incremental-startup-unchanged option.
- (General_options::incremental_startup_disposition): New function.
- (General_options::incremental_startup_disposition_): New data member.
- 2011-07-06 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_incremental_binary::setup_readers): Pass
- input file index to Script_info ctor.
- (Sized_incremental_binary::do_file_has_changed): Find the
- command-line argument for files named in scripts.
- * incremental.h (Script_info::Script_info): New ctor
- with input file index.
- (Script_info::input_file_index): New function.
- (Script_info::input_file_index_): New data member.
- (Incremental_binary::get_library): Add const.
- (Incremental_binary::get_script_info): Add const.
- * readsyms.cc (Read_member::is_runnable): Check for this_blocker_.
- * testsuite/Makefile.am (incremental_test_5): New test case.
- (incremental_test_6): New test case.
- * testsuite/Makefile.in: Regenerate.
- 2011-07-06 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_incremental_binary::do_check_inputs): Add
- debug output when command lines differ.
- 2011-07-06 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Incremental_inputs::report_command_line): Ignore
- --incremental-patch option.
- * layout.cc (Free_list::allocate): Extend allocation beyond original
- end if enabled.
- (Layout::make_output_section): Mark sections that should get
- patch space.
- * options.cc (parse_percent): New function.
- * options.h (parse_percent): New function.
- (DEFINE_percent): New macro.
- (General_options): Add --incremental-patch option.
- * output.cc (Output_section::Output_section): Initialize new data
- members.
- (Output_section::add_input_section): Print section name when out
- of patch space.
- (Output_section::add_output_section_data): Likewise.
- (Output_section::set_final_data_size): Add patch space when
- doing --incremental-full.
- (Output_section::do_reset_address_and_file_offset): Remove patch
- space.
- (Output_segment::set_section_list_addresses): Print debug output
- only if --incremental-update.
- * output.h (Output_section::set_is_patch_space_allowed): New function.
- (Output_section::is_patch_space_allowed_): New data member.
- (Output_section::patch_space_): New data member.
- * parameters.cc (Parameters::incremental_full): New function.
- * parameters.h (Parameters::incremental_full): New function
- * testsuite/Makefile.am (incremental_test_2): Add test for
- --incremental-patch option.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/two_file_test_1_v1.cc (t1, t2, t3): Add comments.
- (t18): Remove function body.
- 2011-07-05 Doug Kwan <dougkwan@google.com>
- PR gold/12771
- * arm.cc (Arm_relocate_functions::abs8): Use int32_t for addend and
- Arm_Address type for relocation result.
- (Arm_relocate_functions::abs16): Use unaligned access. Also fix
- overflow check.
- (Arm_relocate_functions::abs32): Use unaligned access.
- (Arm_relocate_functions::rel32): Ditto.
- (Arm_relocate_functions::prel31): Ditto.
- (Arm_exidix_cantunwind::do_fixed_endian_write): Ditto.
- * testsuite/Makefile.am: Add new test arm_unaligned_reloc for unaligned
- static data relocations.
- * testsuite/Makefile.in: Regnerate.
- * testsuite/arm_unaligned_reloc.{s,sh}: New files.
- 2011-07-05 Ian Lance Taylor <iant@google.com>
- PR gold/12392
- * i386.cc (Target_i386::do_finalize_sections): Define __rel_iplt
- symbols if necessary.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
- 2011-07-05 Ian Lance Taylor <iant@google.com>
- PR gold/12952
- * resolve.cc (Symbol::override_base_with_special): Simply override
- version with special symbol version, ignoring previous version.
- 2011-07-05 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj_file::include_section_group): Add
- information to comment about signature location.
- 2011-07-02 Ian Lance Taylor <iant@google.com>
- PR gold/12957
- * options.h (class General_options): Add -f and -F.
- * options.cc (General_options::finalize): Fatal error if -f/-F
- are used without -shared.
- * layout.cc (Layout::finish_dynamic_section): Implement -f/-F.
- 2011-07-02 Ian Lance Taylor <iant@google.com>
- * dirsearch.cc (Dir_cache::read_files): Ignore ENOTDIR errors.
- 2011-07-01 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- PR gold/12952
- * resolve.cc (Symbol::override_base_with_special): Don't override
- the version if the overriding symbol has a different name.
- * dynobj.cc (Versions::add_def): Add dynpool parameter. Change
- all callers. If we give an error about an undefined version,
- define the base version if necessary.
- * dynobj.h (class Versions): Update declaration.
- * testsuite/weak_alias_test_5.cc: New file.
- * testsuite/weak_alias_test.script: New file.
- * testsuite/weak_alias_test_main.cc: Check that versioned_symbol
- and versioned_alias have the right value, and call t2.
- * testsuite/Makefile.am (weak_alias_test_DEPENDENCIES): Add
- weak_alias_test_5.so.
- (weak_alias_test_LDADD): Likewise.
- (weak_alias_test_5_pic.o, weak_alias_test_5.so): New targets.
- * testsuite/Makefile.in: Rebuild.
- 2011-07-01 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- * options.h (class General_options): Support -z notext.
- * testsuite/Makefile.am (two_file_shared_1_nonpic.so): Use
- -Wl,-z,notext.
- (two_file_shared_nonpic.so): Likewise.
- (two_file_shared_mixed.so): Likewise.
- (two_file_shared_mixed_1.so): Likewise.
- (weak_undef_lib_nonpic.so): Likewise.
- (alt/weak_undef_lib_nonpic.so): Likewise.
- (tls_test_shared_nonpic.so): Likewise.
- * testsuite/Makefile.in: Rebuild.
- 2011-07-01 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- * configure.ac: Test whether static linking works, setting
- the automake conditional HAVE_STATIC.
- * testsuite/Makefile.am: Disable tests using -static if
- HAVE_STATIC is not true.
- * configure, testsuite/Makefile.in: Rebuild.
- 2011-07-01 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- * ehframe.cc (Eh_frame_hdr::get_fde_pc): Handle DW_EH_PE_datarel.
- Assert if we see DW_EH_PE_indirect.
- * target.h (Target::ehframe_datarel_base): New function.
- (Target::do_ehframe_datarel_base): New target function.
- * i386.cc (Target_i386::do_ehframe_datarel_base): New function.
- * x86_64.cc (Target_x86_64::do_ehframe_datarel_base): New
- function.
- 2011-07-01 Ian Lance Taylor <iant@google.com>
- PR gold/12571
- * options.h (class General_options): Add
- --ld-generated-unwind-info.
- * ehframe.cc (Fde::write): Add address parameter. Change all
- callers. If associated with PLT, fill in address and size.
- (Cie::set_output_offset): Only add merge mapping if there is an
- object.
- (Cie::write): Add address parameter. Change all callers.
- (Eh_frame::add_ehframe_for_plt): New function.
- * ehframe.h (class Fde): Update declarations. Move shndx_ and
- input_offset_ fields into union u_, with new plt field.
- (Fde::Fde): Adjust for new union field.
- (Fde::Fde) [Output_data version]: New constructor.
- (Fde::add_mapping): Only add merge mapping if there is an object.
- (class Cie): Update declarations.
- (class Eh_frame): Declare add_ehframe_for_plt.
- * layout.cc (Layout::layout_eh_frame): Break out code into
- make_eh_frame_section, and call it.
- (Layout::make_eh_frame_section): New function.
- (Layout::add_eh_frame_for_plt): New function.
- * layout.h (class Layout): Update declarations.
- * merge.cc (Merge_map::add_mapping): Add assertion.
- * i386.cc: Include "dwarf.h".
- (class Output_data_plt_i386): Make first_plt_entry,
- dyn_first_plt_entry, exec_plt_entry, and dyn_plt_entry const. Add
- plt_eh_frame_cie_size, plt_eh_frame_fde_size, plt_eh_frame_cie,
- and plt_eh_frame_fde.
- (Output_data_plt_i386::Output_data_plt_i386): Align to 16-byte
- boundary. Call add_eh_frame_for_plt if appropriate.
- * x86_64.cc: Include "dwarf.h".
- (class Output_data_plt_x86_64): Align to 16-byte boundary. Make
- first_plt_entry, plt_entry and tlsdesc_plt_entry const. Add
- plt_eh_frame_cie_size, plt_eh_frame_fde_size, plt_eh_frame_cie,
- and plt_eh_frame_fde.
- (Output_data_plt_x86_64::init): Call add_eh_frame_for_plt if
- appropriate.
- 2011-06-29 Ian Lance Taylor <iant@google.com>
- PR gold/12629
- * object.cc (Sized_relobj_file::layout_section): Change shdr
- parameter to be const.
- (Sized_relobj_file::layout_eh_frame_section): New function, broken
- out of do_layout.
- (Sized_relobj_file::do_layout): Defer .eh_frame sections if
- appropriate. Call layout_eh_frame_section.
- (Sized_relobj_file::do_layout_deferred_sections): Handle .eh_frame
- sections.
- * object.h (class Sized_relobj_file): Update declarations.
- 2011-06-29 Ian Lance Taylor <iant@google.com>
- PR gold/12652
- * script.cc (Token::integer_value): Accept trailing M/m/K/k
- modifier.
- (Lex::gather_token): Accept trailing M/m/K/k for integers.
- 2011-06-29 Ian Lance Taylor <iant@google.com>
- PR gold/12675
- * object.cc (Sized_relobj_file::check_eh_frame_flags): Check for
- SHT_X86_64_UNWIND.
- * layout.cc (Layout::layout_eh_frame): Likewise.
- 2011-06-29 Ian Lance Taylor <iant@google.com>
- PR gold/12695
- * layout.cc (Layout::symtab_section_shndx): New function.
- * layout.h (class Layout): Declare symtab_section_shndx.
- * output.cc (Output_section::write_header): Call it.
- 2011-06-29 Ian Lance Taylor <iant@google.com>
- PR gold/12818
- * symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined
- symbols which are not used in a relocation.
- 2011-06-28 Ian Lance Taylor <iant@google.com>
- PR gold/12898
- * layout.cc (Layout::segment_precedes): Don't crash if a linker
- script create indistinguishable segments.
- (Layout::set_segment_offsets): Use stable_sort when sorting
- segments. Pass this to Compare_segments constructor.
- * layout.h (class Layout): Make segment_precedes non-static.
- (class Compare_segments): Change from struct to class. Add
- layout_ field. Add constructor.
- * script-sections.cc
- (Script_sections::attach_sections_using_phdrs_clause): Rename
- local orphan to is_orphan. Don't report failure to put empty
- section in segment. On attachment failure, report name of
- section, and attach to first PT_LOAD segment.
- 2011-06-28 Ian Lance Taylor <iant@google.com>
- PR gold/12934
- * target-select.cc (Target_selector::Target_selector): Add
- emulation parameter. Change all callers.
- (select_target_by_bfd_name): Rename from select_target_by_name.
- Change all callers.
- (select_target_by_emulation): New function.
- (supported_emulation_names): New function.
- * target-select.h (class Target_selector): Add emulation_ field.
- Update declarations.
- (Target_selector::recognize_by_bfd_name): Rename from
- recognize_by_name. Change all callers.
- (Target_selector::supported_bfd_names): Rename from
- supported_names. Change all callers.
- (Target_selector::recognize_by_emulation): New function.
- (Target_selector::supported_emulations): New function.
- (Target_selector::emulation): New function.
- (Target_selector::do_recognize_by_bfd_name): Rename from
- do_recognize_by_name. Change all callers.
- (Target_selector::do_supported_bfd_names): Rename from
- do_supported_names. Change all callers.
- (Target_selector::do_recognize_by_emulation): New function.
- (Target_selector::do_supported_emulations): New function.
- (select_target_by_bfd_name): Change name in declaration.
- (select_target_by_emulation): Declare.
- (supported_emulation_names): Declare.
- * parameters.cc (parameters_force_valid_target): Try to find
- target based on emulation from -m option.
- * options.h (class General_options): Change doc string for -m.
- * options.cc (help): Print emulations.
- (General_options::parse_V): Likewise.
- * freebsd.h (Target_selector_freebsd::Target_selector_freebsd):
- Add emulation parameter. Change all callers.
- 2011-06-28 Ian Lance Taylor <iant@google.com>
- * target.h (class Target): Add osabi_ field.
- (Target::osabi): New function.
- (Target::set_osabi): New function.
- (Target::Target): Initialize osabi_.
- (Target::do_adjust_elf_header): Make pure virtual.
- (Sized_target::do_adjust_elf_header): Declare.
- * target.cc (Sized_target::do_adjust_elf_header): New function.
- (class Sized_target): Instantiate all versions.
- * freebsd.h (class Target_freebsd): Remove.
- (Target_selector_freebsd::do_recognize): Call set_osabi on
- Target.
- (Target_selector_freebsd::do_recognize_by_name): Likewise.
- (Target_selector_freebsd::set_osabi): Remove.
- * i386.cc (class Target_i386): Inherit from Sized_target rather
- than Target_freebsd.
- * x86_64.cc (class Target_x86_64): Likewise.
- 2011-06-28 Ian Lance Taylor <iant@google.com>
- * target.h (Target::can_check_for_function_pointers): Rewrite.
- Make non-virtual.
- (Target::can_icf_inline_merge_sections): Likewise.
- (Target::section_may_have_icf_unsafe_poineters): Likewise.
- (Target::Target_info): Add can_icf_inline_merge_sections field.
- (Target::do_can_check_for_function_pointers): New virtual
- function.
- (Target::do_section_may_have_icf_unsafe_pointers): Likewise.
- * arm.cc (Target_arm::do_can_check_for_function_pointers): Rename
- from can_check_for_function_pointers, move in file.
- (Target_arm::do_section_may_have_icf_unsafe_pointers): Rename from
- section_may_have_icf_unsafe_poineters, move in file.
- (Target_arm::arm_info): Initialize can_icf_inline_merge_sections.
- * i386.cc (Target_i386::do_can_check_for_function_pointers):
- Rename from can_check_for_function_pointers, move in file.
- (Target_i386::can_icf_inline_merge_sections): Remove.
- (Target_i386::i386_info): Initialize
- can_icf_inline_merge_sections.
- * powerpc.cc (Target_powerpc::powerpc_info) [all versions]:
- Initialize can_icf_inline_merge_sections.
- * sparc.cc (Target_sparc::sparc_info) [both version]: Likewise.
- * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers):
- Rename from can_check_for_function_pointers, move in file.
- (Target_x86_64::can_icf_inline_merge_sections): Remove.
- (Target_x86_64::x86_64_info): Initialize
- can_icf_inline_merge_sections.
- * testsuite/testfile.cc (Target_test::test_target_info):
- Likewise.
- * icf.cc (get_section_contents): Correct formatting.
- 2011-06-27 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol::versioned_name): New function.
- (Symbol_table::add_to_final_symtab): Use versioned_name when
- appropriate.
- (Symbol_table::sized_write_symbol): Likewise.
- * symtab.h (class Symbol): Declare versioned_name.
- * stringpool.h (class Stringpool_template): Add variant of add
- which takes a std::basic_string.
- * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_12.
- (ver_test_12_SOURCES, ver_test_12_DEPENDENCIES): New variables.
- (ver_test_12_LDFLAGS, ver_test_12_LDADD): New variables.
- (ver_test_12.o): New target.
- * testsuite/Makefile.in: Rebuild.
- 2011-06-27 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::thm_jump8,
- Arm_relocate_functions::thm_jump11): Use a wider signed
- type to compute offset.
- * testsuite/Makefile.am: Add new tests arm_thm_jump11 and
- arm_thm_jump8.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_branch_in_range.sh: Check test results of
- arm_thm_jump11 and arm_thm_jump8.
- * testsuite/arm_thm_jump11.s: New test source file.
- * testsuite/arm_thm_jump11.t: New linker script.
- * testsuite/arm_thm_jump8.s: New test source file.
- * testsuite/arm_thm_jump8.t: New linker script.
- 2011-06-24 Ian Lance Taylor <iant@google.com>
- * layout.cc: Include "object.h".
- (ctors_sections_in_init_array): New static variable.
- (Layout::is_ctors_in_init_array): New function.
- (Layout::layout): Add entry to ctors_sections_in_init_array if
- appropriate.
- * layout.h (class Layout): Declare is_ctors_in_init_array.
- * reloc.cc (Sized_relobj_file::do_relocate): Call reverse_words if
- is_ctors_reverse_view is set.
- (Sized_relobj_file::write_sections): Add layout parameter. Change
- all callers. Set is_ctors_reverse_view field of View_size.
- (Sized_relobj_file::reverse_words): New function.
- * object.h (Sized_relobj_file::View_size): Add
- is_ctors_reverse_view field.
- (class Sized_relobj_file): Update declarations.
- * testsuite/initpri3.c: New test.
- * testsuite/Makefile.am: (check_PROGRAMS): Add initpri3a and
- initpri3b.
- (initpri3a_SOURCES, initpri3a_DEPENDENCIES): New variables.
- (initpri3a_LDFLAGS, initpri3a_LDADD): New variables.
- (initpri3b_SOURCES, initpri3b_DEPENDENCIES): New variables.
- (initpri3b_LDFLAGS, initpri3b_LDADD): New variables.
- * testsuite/Makefile.in: Rebuild.
- 2011-06-24 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am: Add in-tree assembler to gcctestdir.
- (debug_msg_cdebug.o, odr_violation1_cdebug.o, odr_violation2_cdebug.o)
- (debug_msg_cdebug.err): New targets.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/debug_msg.sh: Check output of link with compressed debug.
- Fix checks for link with shared library.
- 2011-06-24 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_output_section::append_text_sections_to_list): Do not
- skip empty text sections.
- * testsuite/arm_exidx_test.s: Test handling of an empty text section.
- 2011-06-22 Ian Lance Taylor <iant@google.com>
- PR gold/12910
- * options.h (class General_options): Add --ctors-in-init-array.
- * layout.cc (Layout::get_output_section): Treat SHT_INIT_ARRAY and
- friends as SHT_PROGBITS for merging sections.
- (Layout::layout): Remove special handling of .init_array and
- friends. Don't sort if doing relocatable link. Sort for .ctors
- and .dtors if ctors_in_init_array.
- (Layout::make_output_section): Force correct section types for
- .init_array and friends. Don't sort if doing relocatable link,
- Don't sort .ctors and .dtors if ctors_in_init_array.
- (Layout::section_name_mapping): Remove .ctors. and .dtorso.
- (Layout::output_section_name): Add relobj parameter. Change all
- callers. Handle .ctors. and .dtors. in code rather than table.
- Handle .ctors and .dtors if ctors_in_init_array.
- (Layout::match_file_name): New function, moved from output.cc.
- * layout.h (class Layout): Update declarations.
- * output.cc: Include "layout.h".
- (Input_section_sort_entry::get_priority): New function.
- (Input_section_sort_entry::match_file_name): Just call
- Layout::match_file_name.
- (Output_section::Input_section_sort_init_fini_compare::operator()):
- Handle .ctors and .dtors. Sort by explicit priority rather than
- by name.
- * configure.ac: Remove CONSTRUCTOR_PRIORITY test and conditional.
- * testsuite/initpri2.c: New test.
- * testsuite/Makefile.am: Don't test CONSTRUCTOR_PRIORITY.
- (check_PROGRAMS): Add initpri2.
- (initpri2_SOURCES, initpri2_DEPENDENCIES): New variables.
- (initpri2_LDFLAGS, initpri2_LDADD): New variables.
- * configure, testsuite/Makefile.in: Rebuild.
- 2011-06-19 Ian Lance Taylor <iant@google.com>
- PR gold/12880
- * layout.cc (Layout::attach_allocated_section_to_segment): Add a
- .interp section to a PT_INTERP segment even if we have seen a
- --dynamic-linker option. Don't do it if we have seen a PHDRS
- clause in a linker script.
- (Layout::finalize): Don't create a .interp section if we've
- already create a PT_INTERP segment.
- (Layout::create_interp): Always call choose_output_section (revert
- patch of 2011-06-17). Don't create PT_INTERP segment.
- * script-sections.cc
- (Script_sections::create_note_and_tls_segments): Add a .interp
- section to a PT_INTERP segment even if we have seen a
- --dynamic-linker option.
- 2011-06-18 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::finish_dynamic_section): Don't set DT_TEXTREL
- merely because a non-PT_LOAD segment has a dynamic reloc.
- 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>
- PR gold/12745
- * layout.cc (Layout::layout_eh_frame): Correct handling of
- writable .eh_frame section.
- 2011-06-17 Ian Lance Taylor <iant@google.com>
- PR gold/12893
- * resolve.cc (Symbol_table::resolve): Don't give an error if a
- symbol is redefined with the exact same object and value.
- 2011-06-17 Ian Lance Taylor <iant@google.com>
- PR gold/12880
- * layout.h (class Layout): Add interp_segment_ field.
- * layout.cc (Layout::Layout): Initialize interp_segment_ field.
- (Layout::attach_allocated_section_to_segment): If making shared
- library, put .interp section in PT_INTERP segment.
- (Layout::finalize): Also call create_interp if -dynamic-linker
- option was used.
- (Layout::create_interp): Assert that there is no PT_INTERP
- segment. If not using a SECTIONS clause, use make_output_section.
- (Layout::make_output_segment): Set interp_segment_ if PT_INTERP.
- * script-sections.cc
- (Script_sections::create_note_and_tls_segments): If making shared
- library, put .interp section in PT_INTERP segment.
- 2011-06-17 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj_file::do_layout): Keep warning sections
- when making a shared library.
- 2011-06-17 Ian Lance Taylor <iant@google.com>
- * x86_64.cc (Target_x86_64::Scan::check_non_pic): Add gsym
- parameter. Change all callers. Don't issue warning about PC32
- against locally defined symbol.
- 2011-06-16 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Warnings::issue_warning): Don't warn if relocation
- occurs in same object.
- 2011-06-14 Alan Modra <amodra@gmail.com>
- * po/POTFILES.in: Regenerate.
- 2011-06-09 Ian Lance Taylor <iant@google.com>
- * script-sections.cc
- (Orphan_output_section::set_section_addresses): For a relocatable
- link set address to 0.
- 2011-06-09 Cary Coutant <ccoutant@google.com>
- PR gold/12804
- * gold/gold.cc (queue_initial_tasks): Warn if --incremental is
- used with --compress-debug-sections.
- * gold/object.cc (Sized_relobj_file::do_layout): Report
- uncompressed size of compressed input sections.
- 2011-06-08 Cary Coutant <ccoutant@google.com>
- PR gold/12804
- * testsuite/two_file_test_2_v1.cc: Change initialization of
- v2 to keep it in .data.
- 2011-06-07 Cary Coutant <ccoutant@google.com>
- * common.cc (Symbol_table::do_allocate_commons_list): Call
- gold_fallback.
- * errors.cc (Errors::fatal): Adjust call to gold_exit.
- (Errors::fallback): New function.
- (gold_fallback): New function.
- * errors.h (Errors::fallback): New function.
- * gold.cc (gold_exit): Change status parameter to enum; adjust
- all callers.
- (queue_initial_tasks): Call gold_fallback.
- * gold.h: Include cstdlib.
- (Exit_status): New enum type.
- (gold_exit): Change status parameter to enum.
- (gold_fallback): New function.
- * layout.cc (Layout::set_section_offsets): Call gold_fallback.
- (Layout::create_symtab_sections): Likewise.
- (Layout::create_shdrs): Likewise.
- * main.cc (main): Adjust call to gold_exit.
- * output.cc (Output_data_got::add_got_entry): Call gold_fallback.
- (Output_data_got::add_got_entry_pair): Likewise.
- (Output_section::add_input_section): Likewise.
- (Output_section::add_output_section_data): Likewise.
- (Output_segment::set_section_list_addresses): Likewise.
- * x86_64.cc (Output_data_plt_x86_64::add_entry): Likewise.
- 2011-06-07 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::set_segment_offsets): Don't adjust layout
- for incremental links.
- * output.cc (Output_segment::set_section_list_addresses): Remove
- FIXME and test for TLS or BSS.
- 2011-06-07 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am: Add incremental_copy_test,
- incremental_common_test_1.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/common_test_1_v1.c: New source file.
- * testsuite/common_test_1_v2.c: New source file.
- * testsuite/copy_test_v1.cc: New source file.
- 2011-06-07 Cary Coutant <ccoutant@google.com>
- * common.cc (Symbol_table::do_allocate_commons_list): For incremental
- update, allocate common from bss section's free list.
- * incremental-dump.cc (dump_incremental_inputs): Print flag for
- linker-defined symbols.
- * incremental.cc (Sized_incremental_binary::do_process_got_plt):
- Skip GOT and PLT entries that are no longer referenced.
- (Output_section_incremental_inputs::write_info_blocks): Mark
- linker-defined symbols.
- (Sized_incr_relobj::do_add_symbols): Process linker-defined symbols.
- * output.cc (Output_section::allocate): New function.
- * output.h (Output_section::allocate): New function.
- * resolve.cc (Symbol_table::report_resolve_problem): Add case for
- linker-defined symbols.
- (Symbol::override_base_with_special): Copy is_predefined_ flag.
- * symtab.cc (Symbol::init_fields): Initialize is_predefined_ flag.
- (Symbol::init_base_output_data): Likewise.
- (Symbol::init_base_output_segment): Likewise.
- (Symbol::init_base_constant): Likewise.
- (Sized_symbol::init_output_data): Likewise.
- (Sized_symbol::init_output_segment): Likewise.
- (Sized_symbol::init_constant): Likewise.
- (Symbol_table::do_define_in_output_data): Likewise.
- (Symbol_table::do_define_in_output_segment): Likewise.
- (Symbol_table::do_define_as_constant): Likewise.
- * symtab.h (Symbol::is_predefined): New function.
- (Symbol::init_base_output_data): Add is_predefined parameter.
- (Symbol::init_base_output_segment): Likewise.
- (Symbol::init_base_constant): Likewise.
- (Symbol::is_predefined_): New data member.
- (Sized_symbol::init_output_data): Add is_predefined parameter.
- (Sized_symbol::init_output_segment): Likewise.
- (Sized_symbol::init_constant): Likewise.
- (enum Symbol_table::Defined): Add INCREMENTAL_BASE.
- 2011-06-07 Cary Coutant <ccoutant@google.com>
- * copy-relocs.cc (Copy_relocs::copy_reloc): Call make_copy_reloc
- instead of emit_copy_reloc.
- (Copy_relocs::emit_copy_reloc): Refactor.
- (Copy_relocs::make_copy_reloc): New function.
- (Copy_relocs::add_copy_reloc): Remove.
- * copy-relocs.h (Copy_relocs::emit_copy_reloc): Move to public
- section.
- (Copy_relocs::make_copy_reloc): New function.
- (Copy_relocs::add_copy_reloc): Remove.
- * gold.cc (queue_middle_tasks): Emit old COPY relocations from
- unchanged input files.
- * incremental-dump.cc (dump_incremental_inputs): Print "COPY" flag.
- * incremental.cc (Sized_incremental_binary::do_reserve_layout):
- Reserve BSS space for COPY relocations.
- (Sized_incremental_binary::do_emit_copy_relocs): New function.
- (Output_section_incremental_inputs::write_info_blocks): Record
- whether a symbol is copied from a shared object.
- (Sized_incr_dynobj::do_add_symbols): Record COPY relocations.
- * incremental.h (enum Incremental_shlib_symbol_flags): New type.
- (INCREMENTAL_SHLIB_SYM_FLAGS_SHIFT): New constant.
- (Incremental_input_entry_reader::get_output_symbol_index): Add
- is_copy parameter.
- (Incremental_binary::emit_copy_relocs): New function.
- (Incremental_binary::do_emit_copy_relocs): New function.
- (Sized_incremental_binary::Sized_incremental_binary): Initialize
- new data member.
- (Sized_incremental_binary::add_copy_reloc): New function.
- (Sized_incremental_binary::do_emit_copy_relocs): New function.
- (Sized_incremental_binary::Copy_reloc): New struct.
- (Sized_incremental_binary::Copy_relocs): New typedef.
- (Sized_incremental_binary::copy_relocs_): New data member.
- * symtab.cc (Symbol_table::add_from_incrobj): Change return type.
- * symtab.h (Symbol_table::add_from_incrobj): Change return type.
- * target.h (Sized_target::emit_copy_reloc): New function.
- * x86_64.cc (Target_x86_64::emit_copy_reloc): New function.
- 2011-06-02 Cary Coutant <ccoutant@google.com>
- PR gold/12163
- * gold/archive.cc (Archive::Archive): Initialize new data member.
- (Archive::include_all_members): Return if archive has already been
- included.
- * gold/archive.h (Archive::include_all_members_): New data member.
- 2011-06-02 Nick Clifton <nickc@redhat.com>
- * dynobj.h: Fix spelling mistake in comment.
- * output.cc: Likewise.
- 2011-05-31 Doug Kwan <dougkwan@google.com>
- Asier Llano
- PR gold/12826
- * arm.cc (Target_arm::tag_cpu_arch_combine): Fix handling of
- arch value that equals to elfcpp::MAX_TAG_CPU_ARCH.
- * testsuite/Makefile.am: (MOSTLYCLEANFILES): Clean up. Remove
- redundant arm_exidx_test.so.
- * testsuite/Makefile.in: Regenerate.
- (check_SCRIPTS): Add pr12826.sh
- (check_DATA): Add pr12826.stdout
- (pr12826.stdout, pr12826.so, pr12826_1.o, pr12826_2.o): New rules.
- * testsuite/pr12826.sh: New file.
- * testsuite/pr12826_1.s: Ditto.
- * testsuite/pr12826_1.s: Ditto.
- 2011-05-30 Ian Lance Taylor <iant@google.com>
- * reloc.cc (Sized_relobj_file::do_read_relocs): Ignore empty reloc
- sections.
- 2011-05-29 Ian Lance Taylor <iant@google.com>
- PR gold/12804
- * testsuite/Makefile.am: Use different file name for two_file_test
- temporary file for each incremental test.
- * testsuite/Makefile.in: Rebuild.
- 2011-05-29 Ian Lance Taylor <iant@google.com>
- * binary.cc (Binary_to_elf::sized_convert): Don't crash if the
- binary input file is empty.
- 2011-05-27 Ian Lance Taylor <iant@google.com>
- * testsuite/Makefile.am (ver_test_2.so): Use -Wl,-R,.
- (ver_test_9.so): Likewise.
- * testsuite/Makefile.in: Rebuild.
- 2011-05-26 Cary Coutant <ccoutant@google.com>
- * incremental-dump.cc (dump_incremental_inputs): Print COMDAT groups.
- * incremental.cc (Incremental_inputs::report_input_section): Fix
- comment, indentation.
- (Incremental_inputs::report_comdat_group): New function.
- (Output_section_incremental_inputs::set_final_data_size): Adjust size
- of data for incremental input file entry.
- (Output_section_incremental_inputs::write_info_blocks): Write COMDAT
- group count, COMDAT group signatures.
- (Sized_incr_relobj::do_layout): Record kept COMDAT group info from
- an unchanged input file.
- * incremental.h (Incremental_object_entry::Incremental_object_entry):
- Initialize new data member.
- (Incremental_object_entry::add_comdat_group): New function.
- (Incremental_object_entry::get_comdat_group_count): New function.
- (Incremental_object_entry::get_comdat_signature_key): New function.
- (Incremental_object_entry::groups_): New data member.
- (Incremental_inputs::report_comdat_group): New function.
- (Incremental_input_entry_reader::get_symbol_offset): Adjust size of
- data for incremental input file entry.
- (Incremental_input_entry_reader::get_comdat_group_count): New function.
- (Incremental_input_entry_reader::get_input_section): Adjust size of
- data for incremental input file entry.
- (Incremental_input_entry_reader::get_global_symbol_reader): Likewise.
- (Incremental_input_entry_reader::get_comdat_group_signature): New
- function.
- * object.cc (Sized_relobj::include_section_group): Report kept
- COMDAT groups for incremental links.
- 2011-05-24 David Meyer <pdox@google.com>
- * dirsearch.cc (Dirsearch::find): Replace n1 and n2 parameters
- with name parameter. Add found_name parameter.
- * fileread.cc (Input_file::find_file): Adjust code accordingly.
- * dirsearch.h (class Dirsearch): Update declaration.
- 2011-05-24 Ian Lance Taylor <iant@google.com>
- * archive.cc (Library_base::should_include_member): Pull in object
- from archive if it defines the entry symbol.
- * parameters.cc (Parameters::entry): New function.
- * parameters.h (class Parameters): Declare entry.
- * output.h (class Output_file_header): Remove entry_ field.
- * output.cc (Output_file_header::Output_file_header): Remove entry
- parameter. Change all callers.
- (Output_file_header::entry): Use parameters->entry.
- * gold.cc (queue_middle_tasks): Likewise.
- * plugin.cc (Plugin_hook::run): Likewise.
- 2011-05-24 Cary Coutant <ccoutant@google.com>
- * gold.cc (queue_initial_tasks): Pass incremental base filename
- to Output_file::open_base_file; don't print error message.
- * incremental-dump.cc (main): Adjust call to
- Output_file::open_for_modification.
- * incremental-dump.cc (main): Likewise.
- * incremental.cc (Incremental_inputs::report_command_line):
- Ignore --incremental-base option when comparing command lines.
- Ignore parameter when given as separate argument.
- * options.h (class General_options): Add --incremental-base.
- * output.cc (Output_file::Output_file):
- (Output_file::open_base_file): Add base_name and writable parameters;
- read base file into new file; print error message here.
- (Output_file::map_no_anonymous): Add writable parameter; adjust all
- callers.
- * output.h (Output_file::open_for_modification): Rename to...
- (Output_file::open_base_file): ...this; add base_name and
- writable parameters; adjust all callers.
- (Output_file::map_no_anonymous): Add writable parameter; adjust all
- callers.
- * testsuite/Makefile.am (incremental_test_4): Test
- --incremental-base.
- * testsuite/Makefile.in: Regenerate.
- 2011-05-24 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am: Add incremental_test_2, incremental_test_3,
- incremental_test_4.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/two_file_test_1_v1.cc: New test source file.
- * testsuite/two_file_test_1b_v1.cc: New test source file.
- * testsuite/two_file_test_2_v1.cc: New test source file.
- 2011-05-24 Cary Coutant <ccoutant@google.com>
- * dynobj.h (Dynobj::do_dynobj): New function.
- * incremental-dump.cc (dump_incremental_inputs): Print as_needed
- flag and soname for shared objects.
- * incremental.cc (Incremental_inputs::report_object): Make
- either Incremental_object_entry or Incremental_dynobj_entry; add
- soname to string table.
- (Incremental_inputs::report_input_section): Add assertion.
- (Output_section_incremental_inputs::set_final_data_size): Adjust
- type of input file entry for shared libraries; adjust size of
- shared library info entry.
- (Output_section_incremental_inputs::write_input_files): Write
- as_needed flag for shared libraries.
- (Output_section_incremental_inputs::write_info_blocks): Adjust type
- of input file entry for shared libraries; write soname.
- (Sized_incr_dynobj::Sized_incr_dynobj): Read as_needed flag and
- soname from incremental info.
- * incremental.h (enum Incremental_input_flags): Add
- INCREMENTAL_INPUT_AS_NEEDED.
- (Incremental_input_entry::Incremental_input_entry): Initialize new
- data member.
- (Incremental_input_entry::set_as_needed): New function.
- (Incremental_input_entry::as_needed): New function.
- (Incremental_input_entry::do_dynobj_entry): New function.
- (Incremental_input_entry::as_needed_): New data member.
- (Incremental_object_entry::Incremental_object_entry): Don't check
- for shared library.
- (Incremental_object_entry::do_type): Likewise.
- (class Incremental_dynobj_entry): New class.
- (Incremental_input_entry_reader::as_needed): New function.
- (Incremental_input_entry_reader::get_soname): New function.
- (Incremental_input_entry_reader::get_global_symbol_count): Rewrite.
- (Incremental_input_entry_reader::get_output_symbol_index): Adjust
- size of shared library info entry.
- * layout.cc (Layout::finish_dynamic_section): Don't test for
- incremental link when adding DT_NEEDED entries.
- * object.h (Object::Object): Initialize new data member.
- (Object::dynobj): New function.
- (Object::set_as_needed): New function.
- (Object::as_needed): New function.
- (Object::do_dynobj): New function.
- (Object::as_needed_): New data member.
- 2011-05-24 Cary Coutant <ccoutant@google.com>
- * incremental-dump.cc (dump_incremental_inputs): Print dynamic reloc
- info; adjust display of GOT entries.
- * incremental.cc (Sized_incremental_binary::setup_readers): Allocate
- vector of input objects; remove file_status_.
- (Sized_incremental_binary::do_reserve_layout): Remove file_status_.
- (Sized_incremental_binary::do_process_got_plt): Adjust calls to
- got_plt reader; call target hooks to reserve GOT entries.
- (Output_section_incremental_inputs::set_final_data_size): Adjust size
- of input file info header and GOT info entry.
- (Output_section_incremental_inputs::write_info_blocks): Write dynamic
- relocation info.
- (Got_plt_view_info::got_descriptor): Remove.
- (Got_plt_view_info::sym_index): New data member.
- (Got_plt_view_info::input_index): New data member.
- (Local_got_offset_visitor::visit): Write input file index.
- (Global_got_offset_visitor::visit): Write 0 for input file index.
- (Global_symbol_visitor_got_plt::operator()): Replace got_descriptor
- with sym_index and input_index.
- (Output_section_incremental_inputs::write_got_plt): Adjust size of
- incremental info GOT entry; replace got_descriptor with input_index.
- (Sized_relobj_incr::Sized_relobj_incr): Adjust initializers; record
- map from input file index to object.
- (Sized_relobj_incr::do_layout): Replace direct data member reference
- with accessor function.
- (Sized_relobj_incr::do_for_all_local_got_entries): Move to base class.
- * incremental.h (Incremental_input_entry_reader::get_symbol_offset):
- Adjust size of input file info header.
- (Incremental_input_entry_reader::get_first_dyn_reloc): New function.
- (Incremental_input_entry_reader::get_dyn_reloc_count): New function.
- (Incremental_input_entry_reader::get_input_section): Adjust size of
- input file info header.
- (Incremental_got_plt_reader::Incremental_got_plt_reader): Adjust size
- of incremental info GOT entry.
- (Incremental_got_plt_reader::get_got_desc): Remove.
- (Incremental_got_plt_reader::get_got_symndx): New function.
- (Incremental_got_plt_reader::get_got_input_index): New function.
- (Sized_incremental_binary::Sized_incremental_binary): Remove
- file_status_; add input_objects_.
- (Sized_incremental_binary::~Sized_incremental_binary): Remove.
- (Sized_incremental_binary::set_file_is_unchanged): Remove.
- (Sized_incremental_binary::file_is_unchanged): Remove.
- (Sized_incremental_binary::set_input_object): New function.
- (Sized_incremental_binary::input_object): New function.
- (Sized_incremental_binary::file_status_): Remove.
- (Sized_incremental_binary::input_objects_): New data member.
- (Sized_relobj_incr): Rename Sized_incr_relobj to this; adjust all
- references.
- (Sized_relobj_incr::invalid_address): Move to base class.
- (Sized_relobj_incr::is_output_section_offset_invalid): Move to base
- class.
- (Sized_relobj_incr::do_output_section_offset): Likewise.
- (Sized_relobj_incr::do_for_all_local_got_entries): Likewise.
- (Sized_relobj_incr::section_offsets_): Likewise.
- * object.cc (Sized_relobj::do_for_all_local_got_entries): New
- function.
- (Sized_relobj_file::Sized_relobj_file): Remove local_got_offsets_.
- (Sized_relobj_file::layout_section): Replace refs to section_offsets_
- with accessor function.
- (Sized_relobj_file::do_layout): Likewise.
- (Sized_relobj_file::do_layout_deferred_sections): Likewise.
- (Sized_relobj_file::do_for_all_local_got_entries): Move to base class.
- (Sized_relobj_file::compute_final_local_value): Replace refs to
- section_offsets_ with accessor function.
- (Sized_relobj_file::do_finalize_local_symbols): Likewise.
- * object.h (Relobj::Relobj): Initialize new data members.
- (Relobj::add_dyn_reloc): New function.
- (Relobj::first_dyn_reloc): New function.
- (Relobj::dyn_reloc_count): New function.
- (Relobj::first_dyn_reloc_): New data member.
- (Relobj::dyn_reloc_count_): New data member.
- (Sized_relobj): Rename Sized_relobj_base to this; adjust all
- references.
- (Sized_relobj::Address): New typedef.
- (Sized_relobj::invalid_address): Move here from child class.
- (Sized_relobj::Sized_relobj): Initialize new data members.
- (Sized_relobj::sized_relobj): New function.
- (Sized_relobj::is_output_section_offset_invalid): Move here from
- child class.
- (Sized_relobj::get_output_section_offset): Likewise.
- (Sized_relobj::local_has_got_offset): Likewise.
- (Sized_relobj::local_got_offset): Likewise.
- (Sized_relobj::set_local_got_offset): Likewise.
- (Sized_relobj::do_for_all_local_got_entries): Likewise.
- (Sized_relobj::clear_got_offsets): New function.
- (Sized_relobj::section_offsets): Move here from child class.
- (Sized_relobj::do_output_section_offset): Likewise.
- (Sized_relobj::do_set_section_offset): Likewise.
- (Sized_relobj::Local_got_offsets): Likewise.
- (Sized_relobj::local_got_offsets_): Likewise.
- (Sized_relobj::section_offsets_): Likewise.
- (Sized_relobj_file): Rename Sized_relobj to this; adjust all
- references.
- (Sized_relobj_file::is_output_section_offset_invalid): Move to base
- class.
- (Sized_relobj_file::sized_relobj): New function
- (Sized_relobj_file::local_has_got_offset): Move to base class.
- (Sized_relobj_file::local_got_offset): Likewise.
- (Sized_relobj_file::set_local_got_offset): Likewise.
- (Sized_relobj_file::get_output_section_offset): Likewise.
- (Sized_relobj_file::do_for_all_local_got_entries): Likewise.
- (Sized_relobj_file::do_output_section_offset): Likewise.
- (Sized_relobj_file::do_set_section_offset): Likewise.
- (Sized_relobj_file::Local_got_offsets): Likewise.
- (Sized_relobj_file::local_got_offsets_): Likewise.
- (Sized_relobj_file::section_offsets_): Likewise.
- * output.cc (Output_reloc::Output_reloc): Adjust type of relobj
- (all constructors).
- (set_needs_dynsym_index): Convert relobj to derived class pointer.
- (Output_reloc::get_symbol_index): Likewise.
- (Output_reloc::local_section_offset): Likewise.
- (Output_reloc::get_address): Likewise.
- (Output_reloc::symbol_value): Likewise.
- (Output_data_got::reserve_slot): Move to class definition.
- (Output_data_got::reserve_local): New function.
- (Output_data_got::reserve_slot_for_global): Remove.
- (Output_data_got::reserve_global): New function.
- * output.h (Output_reloc::Output_reloc): Adjust type of relobj
- (all constructors, two instantiations).
- (Output_reloc::get_relobj): New function (two instantiations).
- (Output_reloc::u1_.relobj, Output_reloc::u2_.relobj): Adjust type.
- (Output_data_reloc_base::add): Convert relobj to derived class pointer.
- (Output_data_reloc::add_global): Adjust type of relobj.
- (Output_data_reloc::add_global_relative): Likewise.
- (Output_data_reloc::add_symbolless_global_addend): Likewise.
- (Output_data_reloc::add_local): Likewise.
- (Output_data_reloc::add_local_relative): Likewise.
- (Output_data_reloc::add_symbolless_local_addend): Likewise.
- (Output_data_reloc::add_local_section): Likewise.
- (Output_data_reloc::add_output_section): Likewise.
- (Output_data_reloc::add_absolute): Likewise.
- (Output_data_reloc::add_target_specific): Likewise.
- (Output_data_got::reserve_slot): Move definition here.
- (Output_data_got::reserve_local): New function.
- (Output_data_got::reserve_global): New function.
- * reloc.cc (Sized_relobj_file::do_read_relocs): Replace refs to
- section_offsets_ with accessor function.
- (Sized_relobj_file::write_sections): Likewise.
- (Sized_relobj_file::do_relocate_sections): Likewise.
- * target.h (Sized_target::reserve_local_got_entry): New function.
- (Sized_target::reserve_global_got_entry): New function.
- * x86_64.cc (Target_x86_64::reserve_local_got_entry): New function.
- (Target_x86_64::reserve_global_got_entry): New function.
- (Target_x86_64::init_got_plt_for_update): Create rela_dyn section.
- 2011-05-23 Cary Coutant <ccoutant@google.com>
- * gold.cc (queue_middle_tasks): Process existing GOT/PLT entries.
- * incremental-dump.cc (dump_incremental_inputs): Mask high-order
- bit when checking got_type.
- * incremental.cc (Sized_incremental_binary::setup_readers):
- Store symbol table and string table locations; initialize bit vector
- of file status flags.
- (Sized_incremental_binary::do_reserve_layout): Set bit flag for
- unchanged files.
- (Sized_incremental_binary::do_process_got_plt): New function.
- (Sized_incremental_binary::get_symtab_view): Use stored locations.
- (Output_section_incremental_inputs::set_final_data_size): Record
- file index for each input file.
- (Output_section_incremental_inputs::write_got_plt): Store file index
- instead of input entry offset for each GOT entry.
- * incremental.h
- (Incremental_input_entry::Incremental_input_entry): Initialize new
- data member.
- (Incremental_input_entry::set_offset): Store file index.
- (Incremental_input_entry::get_file_index): New function.
- (Incremental_input_entry::file_index_): New data member.
- (Incremental_binary::process_got_plt): New function.
- (Incremental_binary::do_process_got_plt): New function.
- (Sized_incremental_binary::Sized_incremental_binary): Initialize new
- data members.
- (Sized_incremental_binary::~Sized_incremental_binary): New destructor.
- (Sized_incremental_binary::set_file_is_unchanged): New function.
- (Sized_incremental_binary::file_is_unchanged): New function.
- (Sized_incremental_binary::do_process_got_plt): New function.
- (Sized_incremental_binary::file_status_): New data member.
- (Sized_incremental_binary::main_symtab_loc_): New data member.
- (Sized_incremental_binary::main_strtab_loc_): New data member.
- * output.cc (Output_data_got::Got_entry::write): Add case
- RESERVED_CODE.
- (Output_data_got::add_global): Call add_got_entry.
- (Output_data_got::add_global_plt): Likewise.
- (Output_data_got::add_global_with_rel): Likewise.
- (Output_data_got::add_global_with_rela): Likewise.
- (Output_data_got::add_global_pair_with_rel): Call add_got_entry_pair.
- (Output_data_got::add_global_pair_with_rela): Likewise.
- (Output_data_got::add_local): Call add_got_entry.
- (Output_data_got::add_local_plt): Likewise.
- (Output_data_got::add_local_with_rel): Likewise.
- (Output_data_got::add_local_with_rela): Likewise.
- (Output_data_got::add_local_pair_with_rel): Call add_got_entry_pair.
- (Output_data_got::add_local_pair_with_rela): Likewise.
- (Output_data_got::reserve_slot): New function.
- (Output_data_got::reserve_slot_for_global): New function.
- (Output_data_got::add_got_entry): New function.
- (Output_data_got::add_got_entry_pair): New function.
- (Output_section::add_output_section_data): Edit FIXME.
- * output.h
- (Output_section_data_build::Output_section_data_build): New
- constructor with size parameter.
- (Output_data_space::Output_data_space): Likewise.
- (Output_data_got::Output_data_got): Initialize new data member; new
- constructor with size parameter.
- (Output_data_got::add_constant): Call add_got_entry.
- (Output_data_got::reserve_slot): New function.
- (Output_data_got::reserve_slot_for_global): New function.
- (class Output_data_got::Got_entry): Add RESERVED_CODE.
- (Output_data_got::add_got_entry): New function.
- (Output_data_got::add_got_entry_pair): New function.
- (Output_data_got::free_list_): New data member.
- * target.h (Sized_target::init_got_plt_for_update): New function.
- (Sized_target::register_global_plt_entry): New function.
- * x86_64.cc (Output_data_plt_x86_64::Output_data_plt_x86_64):
- Initialize new data member; call init; add constructor with PLT count.
- (Output_data_plt_x86_64::init): New function.
- (Output_data_plt_x86_64::add_relocation): New function.
- (Output_data_plt_x86_64::reserve_slot): New function.
- (Output_data_plt_x86_64::free_list_): New data member.
- (Target_x86_64::init_got_plt_for_update): New function.
- (Target_x86_64::register_global_plt_entry): New function.
- (Output_data_plt_x86_64::add_entry): Allocate from free list for
- incremental updates.
- (Output_data_plt_x86_64::add_relocation): New function.
- * testsuite/object_unittest.cc (Object_test): Set default options.
- 2011-05-16 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Make -i a synonym for -r.
- 2011-05-16 Ian Lance Taylor <iant@google.com>
- * testsuite/tls_test_main.cc: Use semaphores instead of mutexes.
- 2011-05-10 Cary Coutant <ccoutant@google.com>
- * object.cc (Sized_relobj::do_count_local_symbols): Check for
- strip_all (-s).
- 2011-05-06 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::layout): If the output section flags change,
- update the ordering.
- 2011-04-25 Cary Coutant <ccoutant@google.com>
- * incremental-dump.cc (dump_incremental_inputs): Print local
- symbol info for each input file.
- * incremental.cc
- (Output_section_incremental_inputs::set_final_data_size): Add local
- symbol info to input file entries in incremental info.
- (Output_section_incremental_inputs::write_info_blocks): Likewise.
- (Sized_incr_relobj::Sized_incr_relobj): Initialize new data members.
- (Sized_incr_relobj::do_add_symbols): Cosmetic change.
- (Sized_incr_relobj::do_count_local_symbols): Replace stub with
- implementation.
- (Sized_incr_relobj::do_finalize_local_symbols): Likewise.
- (Sized_incr_relobj::do_relocate): Write the local symbols.
- (Sized_incr_dynobj::do_add_symbols): Cosmetic change.
- * incremental.h (Incremental_inputs_reader::get_symbol_offset):
- Adjust size of input file header.
- (Incremental_inputs_reader::get_local_symbol_offset): New function.
- (Incremental_inputs_reader::get_local_symbol_count): New function.
- (Incremental_inputs_reader::get_input_section): Adjust size of input
- file header.
- (Incremental_inputs_reader::get_global_symbol_reader): Likewise.
- (Sized_incr_relobj::This): New typedef.
- (Sized_incr_relobj::sym_size): New const data member.
- (Sized_incr_relobj::Local_symbol): New struct.
- (Sized_incr_relobj::do_output_local_symbol_count): New function.
- (Sized_incr_relobj::do_local_symbol_offset): New function.
- (Sized_incr_relobj::local_symbol_count_): New data member.
- (Sized_incr_relobj::output_local_dynsym_count_): New data member.
- (Sized_incr_relobj::local_symbol_index_): New data member.
- (Sized_incr_relobj::local_symbol_offset_): New data member.
- (Sized_incr_relobj::local_dynsym_offset_): New data member.
- (Sized_incr_relobj::local_symbols_): New data member.
- * object.h (Relobj::output_local_symbol_count): New function.
- (Relobj::local_symbol_offset): New function.
- (Relobj::do_output_local_symbol_count): New function.
- (Relobj::do_local_symbol_offset): New function.
- (Sized_relobj::do_output_local_symbol_count): New function.
- (Sized_relobj::do_local_symbol_offset): New function.
- 2011-04-22 Vladimir Simonov <sv@sw.ru>
- * descriptors.cc (set_close_on_exec): New function.
- (Descriptors::open): Use set_close_on_exec.
- * output.cc (S_ISLNK): Define if not defined.
- 2011-04-22 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Sized_incremental_binary::setup_readers): Allocate
- global symbol map.
- (Sized_incremental_binary::do_apply_incremental_relocs): New function.
- (Sized_incr_relobj::do_add_symbols): Add symbols to global symbol map.
- (Sized_incr_relobj::do_relocate): Remap section indices in incremental
- relocations.
- (Sized_incr_dynobj::do_add_symbols): Add symbols to global symbol map.
- (Sized_incr_dynobj::do_for_all_global_symbols): Remove FIXME.
- (Sized_incr_dynobj::do_for_all_local_got_entries): Likewise.
- * incremental.h
- (Incremental_inputs_reader::global_symbol_reader_at_offset): New
- function.
- (Incremental_binary::apply_incremental_relocs): New function.
- (Incremental_binary::do_apply_incremental_relocs): New function.
- (Sized_incremental_binary::Sized_incremental_binary): Initialize new
- data member.
- (Sized_incremental_binary::add_global_symbol): New function.
- (Sized_incremental_binary::global_symbol): New function.
- (Sized_incremental_binary::do_apply_incremental_relocs): New function.
- (Sized_incremental_binary::symbol_map_): New data member.
- * layout.cc (Layout_task_runner::run): Apply incremental relocations.
- * target.h (Sized_target::apply_relocation): New function.
- * target-reloc.h (apply_relocation): New function.
- * x86_64.cc (Target_x86_64::apply_relocation): New function.
- 2011-04-22 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_output_section::Arm_output_section): Set SHF_LINK_ORDER
- flag of a SHT_ARM_EXIDX section.
- * testsuite/Makefile.am (arm_exidx_test): New test rules.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_exidx_test.s: New file.
- * testsuite/arm_exidx_test.sh: Same.
- 2011-04-20 Cary Coutant <ccoutant@google.com>
- PR gold/12689
- * archive.h (Incremental_archive_entry::Archive_member):
- Initialize arg_serial_ (second constructor).
- 2011-04-17 Ian Lance Taylor <iant@google.com>
- * object.cc (Relocate_info::location): Simplify location string.
- * errors.cc (Errors::error_at_location): Don't print program
- name.
- (Errors::warning_at_location): Likewise.
- (Errors::undefined_symbol): Likewise.
- * testsuite/debug_msg.sh: Update accordingly.
- 2011-04-14 Cary Coutant <ccoutant@google.com>
- * gold/layout.cc (Layout::symtab_section_offset): New function.
- * gold/layout.h (Layout::symtab_section_offset): New function.
- * gold/reloc.cc (Sized_relobj::do_relocate): Call it.
- 2011-04-12 Ian Lance Taylor <iant@google.com>
- * configure.ac: Check for sys/mman.h and mmap. Check for mremap
- with MREMAP_MAYMOVE.
- * output.h (class Output_file): Add map_is_allocated_ field.
- * output.cc: Only #include <sys/mman.h> if it exists. If mmap is
- not available, provide stubs. If mremap is not available, #define
- it to gold_mremap.
- (MREMAP_MAYMOVE): Define if not defined.
- (Output_file::Output_file): Initialize map_is_allocated_.
- (Output_file::resize): Check map_is_allocated_.
- (Output_file::map_anonymous): If mmap fails, use malloc.
- (Output_file::unmap): Don't do anything for an anonymous map.
- * fileread.cc: Only #include <sys/mman.h> if it exists. If mmap
- is not available, provide stubs.
- (File_read::View::~View): Use free rather than delete[].
- (File_read::make_view): Use malloc rather than new[]. If mmap
- fails, use malloc.
- (File_read::find_or_make_view): Use malloc rather than new[].
- * gold.h: Remove HAVE_REMAP code.
- * mremap.c: #include <errno.h>. Only #include <sys/mman.h> if it
- exists. Rename mremap to gold_mremap. If mmap is not available
- don't do anything.
- * configure, config.in: Rebuild.
- 2011-04-11 Ian Lance Taylor <iant@google.com>
- * incremental.cc (Sized_incr_relobj::do_add_symbols): Always
- initialize local variable v.
- 2011-04-11 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::include_member): Adjust call to
- report_object.
- (Add_archive_symbols::run): Track argument serial numbers.
- (Lib_group::include_member): Likewise.
- (Add_lib_group_symbols::run): Adjust call to report_archive_begin.
- * archive.h (Incremental_archive_entry::Archive_member):
- Initialize arg_serial_.
- (Archive_member::arg_serial_): New data member.
- * dynobj.cc (Dynobj::Dynobj): Allow input_file_ to be NULL.
- (Sized_dynobj::do_add_symbols): Track symbols when doing an
- incremental link.
- (Sized_dynobj::do_for_all_local_got_entries): New function.
- * dynobj.h: (Sized_dynobj::do_for_all_local_got_entries): New
- function.
- * fileread.cc (get_mtime): New function.
- * fileread.h (get_mtime): New function.
- * gold.cc (queue_initial_tasks): Check for incremental update.
- (process_incremental_input): New function.
- (queue_middle_tasks): Don't force valid target for incremental
- update.
- * incremental-dump.cc (find_input_containing_global): Adjust
- size of symbol info entry.
- (dump_incremental_inputs): Dump argument serial number and
- in_system_directory flag; bias shndx by 1; print symbol names
- when dumping per-file symbol lists; use new symbol info readers.
- * incremental.cc
- (Output_section_incremental_inputs:update_data_size): New function.
- (Sized_incremental_binary::setup_readers): Setup input readers
- for each input file; build maps for files added from libraries
- and scripts.
- (Sized_incremental_binary::check_input_args): New function.
- (Sized_incremental_binary::do_check_inputs): Build map of argument
- serial numbers to input arguments.
- (Sized_incremental_binary::do_file_has_changed): Rename
- do_file_is_unchanged to this; compare file modification times.
- (Sized_incremental_binary::do_init_layout): New function.
- (Sized_incremental_binary::do_reserve_layout): New function.
- (Sized_incremental_binary::do_get_input_reader): Remove.
- (Sized_incremental_binary::get_symtab_view): New function.
- (Incremental_checker::can_incrementally_link_output_file): Remove.
- (Incremental_inputs::report_command_line): Exclude --debug options.
- (Incremental_inputs::report_archive_begin): Add parameter; track
- argument serial numbers; don't put input file entry for archive
- before archive members.
- (Incremental_inputs::report_archive_end): Put input file entry
- for archive after archive members.
- (Incremental_inputs::report_object): Add parameter; track argument
- serial numbers and in_system_directory flag.
- (Incremental_inputs::report_script): Add parameter; track argument
- serial numbers.
- (Output_section_incremental_inputs::set_final_data_size): Adjust
- size of symbol info entry; check for forwarding symbols.
- (Output_section_incremental_inputs::write_input_files): Write
- in_system_directory flag and argument serial number.
- (Output_section_incremental_inputs::write_info_blocks): Map section
- indices between incremental info and original input file; store
- input section index for each symbol.
- (class Local_got_offset_visitor): Derive from Got_offset_list::Visitor;
- change operator() to visit().
- (class Global_got_offset_visitor): Likewise.
- (class Global_symbol_visitor_got_plt):
- (Output_section_incremental_inputs::write_got_plt): Use new visitor
- classes.
- (Sized_incr_relobj::Sized_incr_relobj): New constructor.
- (Sized_incr_relobj::do_read_symbols): New function.
- (Sized_incr_relobj::do_layout): New function.
- (Sized_incr_relobj::do_layout_deferred_sections): New function.
- (Sized_incr_relobj::do_add_symbols): New function.
- (Sized_incr_relobj::do_should_include_member): New function.
- (Sized_incr_relobj::do_for_all_global_symbols): New function.
- (Sized_incr_relobj::do_for_all_local_got_entries): New function.
- (Sized_incr_relobj::do_section_size): New function.
- (Sized_incr_relobj::do_section_name): New function.
- (Sized_incr_relobj::do_section_contents): New function.
- (Sized_incr_relobj::do_section_flags): New function.
- (Sized_incr_relobj::do_section_entsize): New function.
- (Sized_incr_relobj::do_section_address): New function.
- (Sized_incr_relobj::do_section_type): New function.
- (Sized_incr_relobj::do_section_link): New function.
- (Sized_incr_relobj::do_section_info): New function.
- (Sized_incr_relobj::do_section_addralign): New function.
- (Sized_incr_relobj::do_initialize_xindex): New function.
- (Sized_incr_relobj::do_get_global_symbol_counts): New function.
- (Sized_incr_relobj::do_read_relocs): New function.
- (Sized_incr_relobj::do_gc_process_relocs): New function.
- (Sized_incr_relobj::do_scan_relocs): New function.
- (Sized_incr_relobj::do_count_local_symbols): New function.
- (Sized_incr_relobj::do_finalize_local_symbols): New function.
- (Sized_incr_relobj::do_set_local_dynsym_indexes): New function.
- (Sized_incr_relobj::do_set_local_dynsym_offset): New function.
- (Sized_incr_relobj::do_relocate): New function.
- (Sized_incr_relobj::do_set_section_offset): New function.
- (Sized_incr_dynobj::Sized_incr_dynobj): New function.
- (Sized_incr_dynobj::do_read_symbols): New function.
- (Sized_incr_dynobj::do_layout): New function.
- (Sized_incr_dynobj::do_add_symbols): New function.
- (Sized_incr_dynobj::do_should_include_member): New function.
- (Sized_incr_dynobj::do_for_all_global_symbols): New function.
- (Sized_incr_dynobj::do_for_all_local_got_entries): New function.
- (Sized_incr_dynobj::do_section_size): New function.
- (Sized_incr_dynobj::do_section_name): New function.
- (Sized_incr_dynobj::do_section_contents): New function.
- (Sized_incr_dynobj::do_section_flags): New function.
- (Sized_incr_dynobj::do_section_entsize): New function.
- (Sized_incr_dynobj::do_section_address): New function.
- (Sized_incr_dynobj::do_section_type): New function.
- (Sized_incr_dynobj::do_section_link): New function.
- (Sized_incr_dynobj::do_section_info): New function.
- (Sized_incr_dynobj::do_section_addralign): New function.
- (Sized_incr_dynobj::do_initialize_xindex): New function.
- (Sized_incr_dynobj::do_get_global_symbol_counts): New function.
- (make_sized_incremental_object): New function.
- (Incremental_library::copy_unused_symbols): New function.
- (Incremental_library::do_for_all_unused_symbols): New function.
- * incremental.h (enum Incremental_input_flags): New type.
- (class Incremental_checker): Remove.
- (Incremental_input_entry::Incremental_input_entry): Add argument
- serial number.
- (Incremental_input_entry::arg_serial): New function.
- (Incremental_input_entry::set_is_in_system_directory): New function.
- (Incremental_input_entry::is_in_system_directory): New function.
- (Incremental_input_entry::arg_serial_): New data member.
- (Incremental_input_entry::is_in_system_directory_): New data member.
- (class Script_info): Move here from script.h.
- (Script_info::Script_info): Add filename parameter.
- (Script_info::filename): New function.
- (Script_info::filename_): New data member.
- (Incremental_script_entry::Incremental_script_entry): Add argument
- serial number.
- (Incremental_object_entry::Incremental_object_entry): Likewise.
- (Incremental_object_entry::add_input_section): Build list of input
- sections with map to original shndx.
- (Incremental_object_entry::get_input_section_index): New function.
- (Incremental_object_entry::shndx_): New data member.
- (Incremental_object_entry::name_key_): Rename; adjust all refs.
- (Incremental_object_entry::sh_size_): Rename; adjust all refs.
- (Incremental_archive_entry::Incremental_archive_entry): Add argument
- serial number.
- (Incremental_inputs::report_archive_begin): Likewise.
- (Incremental_inputs::report_object): Likewise.
- (Incremental_inputs::report_script): Likewise.
- (class Incremental_global_symbol_reader): New class.
- (Incremental_input_entry_reader::Incremental_input_entry_reader): Read
- and store flags and input file type.
- (Incremental_input_entry_reader::arg_serial): New function.
- (Incremental_input_entry_reader::type): Extract type from flags.
- (Incremental_input_entry_reader::is_in_system_directory): New function.
- (Incremental_input_entry_reader::get_input_section_count): Call
- accessor function for type.
- (Incremental_input_entry_reader::get_symbol_offset): Call accessor
- function for type; adjust size of global symbol entry.
- (Incremental_input_entry_reader::get_global_symbol_count): Call
- accessor function for type.
- (Incremental_input_entry_reader::get_object_count): Likewise.
- (Incremental_input_entry_reader::get_object_offset): Likewise.
- (Incremental_input_entry_reader::get_member_count): Likewise.
- (Incremental_input_entry_reader::get_unused_symbol_count): Likewise.
- (Incremental_input_entry_reader::get_member_offset): Likewise.
- (Incremental_input_entry_reader::get_unused_symbol): Likewise.
- (Incremental_input_entry_reader::Global_symbol_info): Remove.
- (Incremental_input_entry_reader::get_global_symbol_info): Remove.
- (Incremental_input_entry_reader::get_global_symbol_reader): New
- function.
- (Incremental_input_entry_reader::get_output_symbol_index): New
- function.
- (Incremental_input_entry_reader::type_): Remove.
- (Incremental_input_entry_reader::flags_): New data member.
- (Incremental_inputs_reader::input_file_offset): New function.
- (Incremental_inputs_reader::input_file_index): New function.
- (Incremental_inputs_reader::input_file): Call input_file_offset.
- (Incremental_inputs_reader::input_file_at_offset): New function.
- (Incremental_relocs_reader::get_r_type): Reformat.
- (Incremental_relocs_reader::get_r_shndx): Reformat.
- (Incremental_relocs_reader::get_r_offset): Reformat.
- (Incremental_relocs_reader::data): New function.
- (Incremental_binary::Incremental_binary): Initialize new data members.
- (Incremental_binary::check_inputs): Add cmdline parameter.
- (Incremental_binary::file_is_unchanged): Remove.
- (Input_reader::arg_serial): New function.
- (Input_reader::get_unused_symbol_count): New function.
- (Input_reader::get_unused_symbol): New function.
- (Input_reader::do_arg_serial): New function.
- (Input_reader::do_get_unused_symbol_count): New function.
- (Input_reader::do_get_unused_symbol): New function.
- (Incremental_binary::input_file_count): New function.
- (Incremental_binary::get_input_reader): Change signature to use
- index instead of filename.
- (Incremental_binary::file_has_changed): New function.
- (Incremental_binary::get_input_argument): New function.
- (Incremental_binary::get_library): New function.
- (Incremental_binary::get_script_info): New function.
- (Incremental_binary::init_layout): New function.
- (Incremental_binary::reserve_layout): New function.
- (Incremental_binary::output_file): New function.
- (Incremental_binary::do_check_inputs): New function.
- (Incremental_binary::do_file_is_unchanged): Remove.
- (Incremental_binary::do_file_has_changed): New function.
- (Incremental_binary::do_init_layout): New function.
- (Incremental_binary::do_reserve_layout): New function.
- (Incremental_binary::do_input_file_count): New function.
- (Incremental_binary::do_get_input_reader): Change signature.
- (Incremental_binary::input_args_map_): New data member.
- (Incremental_binary::library_map_): New data member.
- (Incremental_binary::script_map_): New data member.
- (Sized_incremental_binary::Sized_incremental_binary): Initialize
- new data members.
- (Sized_incremental_binary::output_section): New function.
- (Sized_incremental_binary::inputs_reader): Add const.
- (Sized_incremental_binary::symtab_reader): Add const.
- (Sized_incremental_binary::relocs_reader): Add const.
- (Sized_incremental_binary::got_plt_reader): Add const.
- (Sized_incremental_binary::get_symtab_view): New function.
- (Sized_incremental_binary::Inputs_reader): New typedef.
- (Sized_incremental_binary::Input_entry_reader): New typedef.
- (Sized_incremental_binary::do_check_inputs): Add cmdline parameter.
- (Sized_incremental_binary::do_file_is_unchanged): Remove.
- (Sized_incremental_binary::do_file_has_changed): New function.
- (Sized_incremental_binary::do_init_layout): New function.
- (Sized_incremental_binary::do_reserve_layout): New function.
- (Sized_input_reader::Inputs_reader): Remove.
- (Sized_input_reader::Input_entry_reader): Remove.
- (Sized_input_reader::do_arg_serial): New function.
- (Sized_input_reader::do_get_unused_symbol_count): New function.
- (Sized_input_reader::do_get_unused_symbol): New function.
- (Sized_incremental_binary::do_input_file_count): New function.
- (Sized_incremental_binary::do_get_input_reader): Change signature;
- use index instead of filename.
- (Sized_incremental_binary::section_map_): New data member.
- (Sized_incremental_binary::input_entry_readers_): New data member.
- (class Sized_incr_relobj): New class.
- (class Sized_incr_dynobj): New class.
- (make_sized_incremental_object): New function.
- (class Incremental_library): New class.
- * layout.cc (Free_list::num_lists): New static data member.
- (Free_list::num_nodes): New static data member.
- (Free_list::num_removes): New static data member.
- (Free_list::num_remove_visits): New static data member.
- (Free_list::num_allocates): New static data member.
- (Free_list::num_allocate_visits): New static data member.
- (Free_list::init): New function.
- (Free_list::remove): New function.
- (Free_list::allocate): New function.
- (Free_list::dump): New function.
- (Free_list::print_stats): New function.
- (Layout_task_runner::run): Resize output file for incremental updates.
- (Layout::Layout): Initialize new data members.
- (Layout::set_incremental_base): New function.
- (Layout::init_fixed_output_section): New function.
- (Layout::layout_eh_frame): Do not build .eh_frame_hdr section for
- incremental updates.
- (Layout::create_gold_note): Do not create gold note section for
- incremental updates.
- (Layout::set_segment_offsets): Do not recalculate RELRO alignment
- for incremental updates.
- (Layout::set_section_offsets): For incremental updates, allocate space
- from free list.
- (Layout::create_symtab_sections): Layout with offsets relative to
- start of section; for incremental updates, allocate space from free
- list.
- (Layout::create_shdrs): For incremental updates, allocate space from
- free list.
- (Layout::finish_dynamic_section): For incremental updates, do not
- check --as-needed (fixed in subsequent patch).
- * layout.h (class Free_list): New class.
- (Layout::set_incremental_base): New function.
- (Layout::incremental_base): New function.
- (Layout::init_fixed_output_section): New function.
- (Layout::allocate): New function.
- (Layout::incremental_base_): New data member.
- (Layout::free_list_): New data member.
- * main.cc (main): Print Free_list statistics.
- * object.cc (Relobj::finalize_incremental_relocs): Add
- clear_counts parameter; clear counts only when clear_counts is set.
- (Sized_relobj::Sized_relobj): Initialize new base class.
- (Sized_relobj::do_layout): Don't report special sections.
- (Sized_relobj::do_for_all_local_got_entries): New function.
- (Sized_relobj::write_local_symbols): Add symtab_off parameter; add
- symtab_off to all symbol table offsets.
- (Sized_relobj::do_get_global_symbol_counts): Add typename keyword.
- * object.h (class Got_offset_list): Move to top of file.
- (Object::Object): Allow case where input_file == NULL.
- (Object::~Object): Likewise.
- (Object::input_file): Assert that input_file != NULL.
- (Object::lock): Allow case where input_file == NULL.
- (Object::unlock): Likewise.
- (Object::is_locked): Likewise.
- (Object::token): Likewise.
- (Object::release): Likewise.
- (Object::is_incremental): New function.
- (Object::get_mtime): New function.
- (Object::for_all_local_got_entries): New function.
- (Object::clear_view_cache_marks): Allow case where input_file == NULL.
- (Object::set_is_in_system_directory): New function.
- (Object::is_in_system_directory): New function.
- (Object::do_is_incremental): New function.
- (Object::do_get_mtime): New function.
- (Object::do_for_all_local_got_entries): New function.
- (Object::is_in_system_directory_): New data member.
- (Relobj::finalize_incremental_relocs): Add clear_counts parameter.
- (class Sized_relobj_base): New class.
- (class Sized_relobj): Derive from Sized_relobj_base.
- (class Sized_relobj::Symbols): Redeclare from base class.
- (class Sized_relobj::local_got_offset_list): Remove.
- (class Sized_relobj::Output_sections): Redeclare from base class.
- (class Sized_relobj::do_for_all_local_got_entries): New function.
- (class Sized_relobj::write_local_symbols): Add offset parameter.
- (class Sized_relobj::local_symbol_offset_): Update comment.
- (class Sized_relobj::local_dynsym_offset_): Update comment.
- * options.cc (Input_arguments::add_file): Remove const.
- * options.h (Input_file_argument::Input_file_argument):
- Initialize arg_serial_ (all constructors).
- (Input_file_argument::set_arg_serial): New function.
- (Input_file_argument::arg_serial): New function.
- (Input_file_argument::arg_serial_): New data member.
- (Input_arguments::Input_arguments): Initialize file_count_.
- (Input_arguments::add_file): Remove const.
- (Input_arguments::number_of_input_files): New function.
- (Input_arguments::file_count_): New data member.
- (Command_line::number_of_input_files): Call
- Input_arguments::number_of_input_files.
- * output.cc (Output_segment_headers::Output_segment_headers):
- Set current size.
- (Output_section::Input_section::current_data_size): New function.
- (Output_section::Output_section): Initialize new data members.
- (Output_section::add_input_section): Don't do merge sections for
- an incremental link; allocate space from free list for an
- incremental update.
- (Output_section::add_output_section_data): Allocate space from
- free list for an incremental update.
- (Output_section::update_data_size): New function.
- (Output_section::set_fixed_layout): New function.
- (Output_section::reserve): New function.
- (Output_segment::set_section_addresses): Remove const.
- (Output_segment::set_section_list_addresses): Remove const; allocate
- space from free list for an incremental update.
- (Output_segment::set_offset): Adjust size of RELRO segment for an
- incremental update.
- * output.h (Output_data::current_data_size): Move here from
- child classes.
- (Output_data::pre_finalize_data_size): New function.
- (Output_data::update_data_size): New function.
- (Output_section_headers::update_data_size): new function.
- (Output_section_data_build::current_data_size): Move to Output_data.
- (Output_data_strtab::update_data_size): New function.
- (Output_section::current_data_size): Move to Output_data.
- (Output_section::set_fixed_layout): New function.
- (Output_section::has_fixed_layout): New function.
- (Output_section::reserve): New function.
- (Output_section::update_data_size): New function.
- (Output_section::has_fixed_layout_): New data member.
- (Output_section::free_list_): New data member.
- (Output_segment::set_section_addresses): Remove const.
- (Output_segment::set_section_list_addresses): Remove const.
- * plugin.cc (Sized_pluginobj::do_for_all_local_got_entries):
- New function.
- * plugin.h (Sized_pluginobj::do_for_all_local_got_entries):
- New function.
- * readsyms.cc (Read_symbols::do_read_symbols): Add library
- parameter when calling Add_symbols constructor; store argument
- serial number for members of a lib group.
- (Add_symbols::locks): Allow case where token == NULL.
- (Add_symbols::run): Report libraries denoted by --start-lib/--end-lib.
- (Read_member::~Read_member): New function.
- (Read_member::is_runnable): New function.
- (Read_member::locks): New function.
- (Read_member::run): New function.
- (Check_script::~Check_script): New function.
- (Check_script::is_runnable): New function.
- (Check_script::locks): New function.
- (Check_script::run): New function.
- (Check_library::~Check_library): New function.
- (Check_library::is_runnable): New function.
- (Check_library::locks): New function.
- (Check_library::run): New function.
- * readsyms.h (Add_symbols::Add_symbols): Add library parameter.
- (Add_symbols::library_): New data member.
- (class Read_member): New class.
- (class Check_script): New class.
- (class Check_library): New class.
- * reloc.cc (Read_relocs::is_runnable): Allow case where
- token == NULL.
- (Read_relocs::locks): Likewise.
- (Scan_relocs::locks): Likewise.
- (Relocate_task::locks): Likewise.
- (Sized_relobj::do_scan_relocs): Tell finalize_incremental_relocs
- to clear counters.
- (Sized_relobj::incremental_relocs_scan): Fix comment.
- (Sized_relobj::do_relocate): Pass output file offset to
- write_local_symbols.
- (Sized_relobj::incremental_relocs_write_reltype): Use reloc_size
- from class declaration.
- * script.cc (read_input_script): Allocate Script_info; pass
- argument serial number to report_script.
- * script.h (class Script_info): Move to incremental.h.
- * symtab.cc (Symbol_table::add_from_incrobj): New function.
- * symtab.h (Symbol_table::add_from_incrobj): New function.
- (Symbol_table::set_file_offset): New function.
- 2011-04-05 Cary Coutant <ccoutant@google.com>
- * incremental-dump.cc (dump_incremental_inputs): Change signature
- to take a Sized_incremental_binary; change caller. Use readers
- in Sized_incremental_binary.
- * incremental.cc
- (Sized_incremental_binary::find_incremental_inputs_sections):
- Rename do_find_incremental_inputs_sections to this.
- (Sized_incremental_binary::setup_readers): New function.
- (Sized_incremental_binary::do_check_inputs): Check
- has_incremental_info_ flag; move setup code to setup_readers;
- use input readers.
- (Sized_incremental_binary::do_file_is_unchanged): New function.
- (Sized_incremental_binary::do_get_input_reader): New function.
- * incremental.h (class Incremental_binary): Move to end of file.
- (Incremental_binary::file_is_unchanged): New function.
- (Incremental_binary::do_file_is_unchanged): New function.
- (Incremental_binary::Input_reader): New class.
- (Incremental_binary::get_input_reader): New function.
- (class Sized_incremental_binary): Move to end of file.
- (Sized_incremental_binary::Sized_incremental_binary): Setup the
- input section reader classes.
- (Sized_incremental_binary::has_incremental_info): New function.
- (Sized_incremental_binary::inputs_reader): New function.
- (Sized_incremental_binary::symtab_reader): New function.
- (Sized_incremental_binary::relocs_reader): New function.
- (Sized_incremental_binary::got_plt_reader): New function.
- (Sized_incremental_binary::do_file_is_unchanged): New function.
- (Sized_incremental_binary::Sized_input_reader): New class.
- (Sized_incremental_binary::get_input_reader): New function.
- (Sized_incremental_binary::find_incremental_inputs_sections):
- Rename do_find_incremental_inputs_sections to this.
- (Sized_incremental_binary::setup_readers): New function.
- (Sized_incremental_binary::has_incremental_info_): New data member.
- (Sized_incremental_binary::inputs_reader_): New data member.
- (Sized_incremental_binary::symtab_reader_): New data member.
- (Sized_incremental_binary::relocs_reader_): New data member.
- (Sized_incremental_binary::got_plt_reader_): New data member.
- (Sized_incremental_binary::current_input_file_): New data member.
- 2011-04-05 Paul Pluzhnikov <ppluzhnikov@google.com>
- PR gold/12640
- * dwarf_reader.cc (Sized_dwarf_line_info): Fix vector bounds
- violation.
- 2011-03-30 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::include_member): Adjust call to report_object.
- (Add_archive_symbols::run): Add script_info to call to
- report_archive_begin.
- (Lib_group::include_member): Adjust call to report_object.
- (Add_lib_group_symbols::run): Adjust call to report_object.
- * incremental-dump.cc (dump_incremental_inputs): Remove unnecessary
- blocks. Add object count for script input files.
- * incremental.cc (Incremental_inputs::report_archive_begin): Add
- script_info parameter; change all callers.
- (Incremental_inputs::report_object): Add script_info parameter;
- change all callers.
- (Incremental_inputs::report_script): Store backpointer to
- incremental info entry.
- (Output_section_incremental_inputs::set_final_data_size): Record
- additional information for scripts.
- (Output_section_incremental_inputs::write_info_blocks): Likewise.
- * incremental.h (Incremental_script_entry::add_object): New function.
- (Incremental_script_entry::get_object_count): New function.
- (Incremental_script_entry::get_object): New function.
- (Incremental_script_entry::objects_): New data member; adjust
- constructor.
- (Incremental_inputs::report_archive_begin): Add script_info parameter.
- (Incremental_inputs::report_object): Add script_info parameter.
- (Incremental_inputs_reader::get_object_count): New function.
- (Incremental_inputs_reader::get_object_offset): New function.
- * options.cc (Input_arguments::add_file): Return reference to
- new input argument.
- * options.h (Input_argument::set_script_info): New function.
- (Input_argument::script_info): New function.
- (Input_argument::script_info_): New data member; adjust all
- constructors.
- (Input_file_group::add_file): Return reference to new input argument.
- (Input_file_lib::add_file): Likewise.
- (Input_arguments::add_file): Likewise.
- * readsyms.cc (Add_symbols::run): Adjust call to report_object.
- * script.cc (Parser_closure::Parser_closure): Add script_info
- parameter; adjust all callers.
- (Parser_closure::script_info): New function.
- (Parser_closure::script_info_): New data member.
- (read_input_script): Report scripts earlier to incremental info.
- (script_add_file): Set script_info in Input_argument.
- (script_add_library): Likewise.
- * script.h (Script_options::Script_info): Rewrite class.
- 2011-03-29 Cary Coutant <ccoutant@google.com>
- * archive.cc (Library_base::should_include_member): Move
- method here from class Archive.
- (Archive::Archive): Initialize base class.
- (Archive::should_include_member): Move to base class.
- (Archive::do_for_all_unused_symbols): New function.
- (Add_archive_symbols::run): Remove redundant access to
- incremental_inputs.
- (Lib_group::Lib_group): Initialize base class.
- (Lib_group::do_filename): New function.
- (Lib_group::include_member): Pass pointer to Lib_group to
- report_object.
- (Lib_group::do_for_all_unused_symbols): New function.
- (Add_lib_group_symbols::run): Report archive information for
- incremental links.
- * archive.h (class Library_base): New base class.
- (class Archive): Derive from Library_base.
- (Archive::filename): Move to base class.
- (Archive::set_incremental_info): Likewise.
- (Archive::incremental_info): Likewise.
- (Archive::Should_include): Likewise.
- (Archive::should_include_member): Likewise.
- (Archive::Armap_entry): Remove.
- (Archive::Unused_symbol_iterator): Remove.
- (Archive::unused_symbols_begin): Remove.
- (Archive::unused_symbols_end): Remove.
- (Archive::do_filename): New function.
- (Archive::do_get_mtime): New function.
- (Archive::do_for_all_unused_symbols): New function.
- (Archive::task_): Move to base class.
- (Archive::incremental_info_): Likewise.
- (class Lib_group): Derive from Library_base.
- (Lib_group::do_filename): New function.
- (Lib_group::do_get_mtime): New function.
- (Lib_group::do_for_all_unused_symbols): New function.
- (Lib_group::task_): Move to base class.
- * dynobj.cc (Sized_dynobj::do_for_all_global_symbols): New
- function.
- * dynobj.h (Sized_dynobj::do_for_all_global_symbols): New
- function.
- * incremental.cc (Incremental_inputs::report_archive_begin):
- Use Library_base; call library's get_mtime; add incremental inputs
- entry before members.
- (class Unused_symbol_visitor): New class.
- (Incremental_inputs::report_archive_end): Use Library_base; use
- visitor class to record unused symbols; don't add incremental inputs
- entry after members.
- (Incremental_inputs::report_object): Use Library_base.
- * incremental.h
- (Incremental_archive_entry::Incremental_archive_entry): Remove
- unused Archive parameter.
- (Incremental_inputs::report_archive_begin): Use Library_base.
- (Incremental_inputs::report_archive_end): Likewise.
- (Incremental_inputs::report_object): Likewise.
- * object.cc (Sized_relobj::do_for_all_global_symbols): New
- function.
- * object.h (Object::for_all_global_symbols): New function.
- (Object::do_for_all_global_symbols): New function.
- (Sized_relobj::do_for_all_global_symbols): New function.
- * plugin.cc (Sized_pluginobj::do_for_all_global_symbols): New
- function.
- * plugin.h (Sized_pluginobj::do_for_all_global_symbols): New
- function.
- 2011-03-27 Ian Lance Taylor <iant@google.com>
- * archive.cc (Archive::interpret_header): Return -1 if something
- goes wrong. Change callers accordingly.
- 2011-03-25 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (final_layout.stdout): Use -n option with nm.
- * testsuite/Makefile.in: Regenerate.
- 2011-03-23 Rafael Ávila de Espíndola <respindola@mozilla.com>
- * plugin.cc (get_view): New.
- (Plugin::load): Pass get_view to the plugin.
- (Plugin_manager::get_view): New.
- 2011-03-21 Ian Lance Taylor <iant@google.com>
- * testsuite/final_layout.sh: Rewrite to not use dc.
- * testsuite/relro_test.sh: Fail if dc is not present.
- 2011-03-21 Sriraman Tallam <tmsriram@google.com>
- * testsuite/icf_safe_so_test.sh: Add #!/bin/sh to start.
- Change == to -eq.
- * testsuite/icf_string_merge_test.sh: Add #!/bin/sh to start.
- * testsuite/icf_safe_test.sh: Add #!/bin/sh to start.
- Change == to -eq.
- * testsuite/icf_sht_rel_addend_test.sh: Add #!/bin/sh to start.
- * testsuite/icf_preemptible_functions_test.sh: Add #!/bin/sh to start.
- 2011-03-14 Ian Lance Taylor <iant@google.com>
- * script-sections.cc (Sort_output_sections::script_compare):
- Rename from is_before, change return type.
- (Sort_output_sections::operator()): Adjust accordingly.
- 2011-03-11 Jeffrey Yasskin <jyasskin@google.com>
- PR gold/12572
- * testsuite/odr_violation2.cc: Add comment to make all error line
- numbers double digits.
- * testsuite/debug_msg.sh: Adjust expected errors.
- 2011-03-09 Jeffrey Yasskin <jyasskin@google.com>
- * dwarf_reader.cc (Sized_dwarf_line_info): Include all lines,
- but mark earlier ones as non-canonical
- (offset_to_iterator): Update search target and example
- (do_addr2line): Return extra lines in a vector*
- (format_file_lineno): Extract from do_addr2line
- (one_addr2line): Add vector* out-param
- * dwarf_reader.h (Offset_to_lineno_entry): New field recording
- when a lineno entry appeared last for its instruction
- (Dwarf_line_info): Add vector* out-param
- * object.cc (Relocate_info): Pass NULL for the vector* out-param
- * symtab.cc (Odr_violation_compare): Include the lineno in the
- comparison again.
- (linenos_from_loc): New. Combine the canonical line for an
- address with its other lines.
- (True_if_intersect): New. Helper functor to make
- std::set_intersection a query.
- (detect_odr_violations): Compare sets of lines instead of just
- one line for each function. This became less deterministic, but
- has fewer false positives.
- * symtab.h: Declarations.
- * testsuite/Makefile.am (odr_violation2.o): Compile with -O2 to
- mix an optimized and non-optimized object in the same binary
- (odr_violation2.so): Same.
- * testsuite/Makefile.in: Regenerate from Makefile.am.
- * testsuite/debug_msg.cc (main): Make OdrDerived classes.
- * testsuite/debug_msg.sh: Update line numbers and add
- assertions.
- * testsuite/odr_violation1.cc: Use OdrDerived, in a
- non-optimized context.
- * testsuite/odr_violation2.cc: Make sure Ordering::operator()
- isn't inlined, and use OdrDerived in an optimized context.
- * testsuite/odr_header1.h: Defines OdrDerived, where
- optimization will change the
- first-instruction-in-the-destructor's file and line number.
- * testsuite/odr_header2.h: Defines OdrBase.
- 2011-03-09 Ian Lance Taylor <iant@google.com>
- * fileread.cc (File_read::clear_views): Don't delete the whole
- file view.
- 2011-03-08 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- * fileread.cc: #include <climits>.
- (GOLD_IOV_MAX): Define.
- (File_read::read_multiple): Limit number of entries by iov_max.
- * fileread.h (class File_read): Always set max_readv_entries to
- 128.
- 2011-03-07 Ian Lance Taylor <iant@google.com>
- PR gold/12525
- * options.h (class General_options): Add -dy and -dn.
- 2011-03-02 Cary Coutant <ccoutant@google.com>
- * testsuite/script_test_9.t: Add TLS segment.
- 2011-03-02 Simon Baldwin <simonb@google.com>
- * configure.ac: Add check for gnu_indirect_function support in
- the toolchain building binutils.
- * configure: Rebuild.
- 2011-02-18 Rafael Ávila de Espíndola <respindola@mozilla.com>
- * symtab.cc (Symbol::should_add_dynsym_entry) Return false for
- plugin only symbols.
- (Symbol_table::sized_finalize_symbol) Mark symbol only present
- in plugin files as not needed in the symbol table.
- 2011-02-11 Sriraman Tallam <tmsriram@google.com>
- * output.cc (Output_section::add_input_section): Delay fill
- generation for section ordering.
- 2011-02-09 Ian Lance Taylor <iant@google.com>
- PR gold/12316
- * object.h (class Sized_relobj): Remove clear_local_symbols.
- * reloc.cc (Sized_relobj::do_relocate): Don't call
- clear_local_symbols.
- 2011-02-08 Rafael Ávila de Espíndola <respindola@mozilla.com>
- * plugin.cc (is_visible_from_outside): Return true for symbols
- in the -u option.
- 2011-02-04 Jeffrey Yasskin <jyasskin@google.com>
- * symtab.cc (Odr_violation_compare::operator()): Sort by just the
- filename.
- 2011-02-02 Sriraman Tallam <tmsriram@google.com>
- * icf.h (is_section_foldable_candidate): Change type of parameter
- to std::string.
- * icf.cc (Icf::find_identical_sections): Change type of local variable
- section_name to be std::string.
- (is_function_ctor_or_dtor): Change type of parameter to std::string.
- 2011-01-25 Ian Lance Taylor <iant@google.com>
- * script.cc (script_add_extern): Rewrite to use
- add_symbol_reference.
- 2011-01-25 Doug Kwan <dougkwan@google.com>
- * icf.cc (get_section_contents): Always lock section's object.
- 2011-01-24 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Accept
- --no-detect-odr-violations.
- 2011-01-24 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Bump to 1.11.
- 2011-01-24 Ian Lance Taylor <iant@google.com>
- * plugin.cc (class Plugin_rescan): Define new class.
- (Plugin_manager::claim_file): Set any_claimed_.
- (Plugin_manager::save_archive): New function.
- (Plugin_manager::save_input_group): New function.
- (Plugin_manager::all_symbols_read): Create Plugin_rescan task if
- necessary.
- (Plugin_manager::new_undefined_symbol): New function.
- (Plugin_manager::rescan): New function.
- (Plugin_manager::rescannable_defines): New function.
- (Plugin_manager::add_input_file): Set any_added_.
- * plugin.h (class Plugin_manager): define new fields rescannable_,
- undefined_symbols_, any_claimed_, and any_added_. Declare
- Plugin_rescan as friend. Declare new functions.
- (Plugin_manager::Rescannable): Define type.
- (Plugin_manager::Rescannable_list): Define type.
- (Plugin_manager::Undefined_symbol_list): Define type.
- (Plugin_manager::Plugin_manager): Initialize new fields.
- * archive.cc (Archive::defines_symbol): New function.
- (Add_archive_symbols::run): Pass archive to plugins if any.
- * archive.h (class Archive): Declare defines_symbol.
- * readsyms.cc (Input_group::~Input_group): New function.
- (Finish_group::run): Pass input_group to plugins if any.
- * readsyms.h (class Input_group): Declare destructor.
- * symtab.cc (add_from_object): Pass undefined symbol to plugins if
- any.
- 2011-01-10 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::layout_eh_frame): Mark a writable .eh_frame
- section as relro.
- (Layout::set_segment_offsets): Reset increase_relro before calling
- set_section_addresses a second time.
- 2011-01-04 Cary Coutant <ccoutant@google.com>
- * script-sections.cc (Sort_output_sections::operator()): Sort TLS
- sections before NOBITS sections.
- 2011-01-01 H.J. Lu <hongjiu.lu@intel.com>
- * version.cc (print_version): Update copyright to 2011.
- 2010-12-23 Cary Coutant <ccoutant@google.com>
- * output.h (Output_data_reloc::add_output_section): Pass OD instead
- of OS to this->add. Add OD parameter to second form of the function.
- 2010-12-20 Ian Lance Taylor <iant@google.com>
- * dwarf_reader.cc (Sized_dwarf_line_info::read_lines): Only keep
- second of two consecutive entries with same offset.
- 2010-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * testsuite/Makefile.am (ifuncmain2static_LDADD)
- (ifuncmain2_LDADD, ifuncmain4static_LDADD, ifuncmain4_LDADD)
- (ifuncmain7static_LDADD, ifuncmain7_LDADD): New empty variables,
- to avoid unneeded links against $(LDADD).
- * testsuite/Makefile.in: Regenerate.
- 2010-12-15 Ian Lance Taylor <iant@google.com>
- PR gold/12324
- * x86_64.cc (Target_x86_64::Scan::check_non_pic): Give an error
- for R_X86_64_32 and R_X86_64_PC32.
- * testsuite/Makefile.am (ver_matching_def.so): Depend on and use
- ver_matching_def_pic.o.
- (ver_matching_def_pic.o): New target.
- 2010-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * fileread.cc (file_counts_lock, file_counts_initialize_lock)
- (total_mapped_bytes, current_mapped_bytes, maximum_mapped_bytes):
- Move definition before File_read::View member definitions.
- (File_read::View::~View): Initialize and hold lock before
- updating current_mapped_bytes.
- 2010-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * dwarf_reader.cc: Remove outdated comment.
- * gold-threads.cc: Fix typo in error message.
- * archive.cc: Fix typos in comments.
- * archive.h: Likewise.
- * arm-reloc-property.cc: Likewise.
- * arm-reloc-property.h: Likewise.
- * arm-reloc.def: Likewise.
- * arm.cc: Likewise.
- * attributes.h: Likewise.
- * cref.cc: Likewise.
- * ehframe.cc: Likewise.
- * fileread.h: Likewise.
- * gold.h: Likewise.
- * i386.cc: Likewise.
- * icf.cc: Likewise.
- * incremental.h: Likewise.
- * int_encoding.cc: Likewise.
- * layout.h: Likewise.
- * main.cc: Likewise.
- * merge.h: Likewise.
- * object.cc: Likewise.
- * object.h: Likewise.
- * options.cc: Likewise.
- * readsyms.cc: Likewise.
- * reduced_debug_output.cc: Likewise.
- * reloc.cc: Likewise.
- * script-sections.cc: Likewise.
- * sparc.cc: Likewise.
- * symtab.h: Likewise.
- * target-reloc.h: Likewise.
- * target.cc: Likewise.
- * target.h: Likewise.
- * timer.cc: Likewise.
- * timer.h: Likewise.
- * x86_64.cc: Likewise.
- 2010-12-09 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::layout_gnu_stack): Add warnings for executable
- stack.
- * layout.h (Layout::layout_gnu_stack): Add pointer to Object
- parameter; change all callers.
- * object.cc (Sized_relobj::do_layout): Adjust call to layout_gnu_stack.
- * options.h (warn_execstack): New option.
- 2010-12-07 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Scan::get_reference_flags): Treat R_ARM_PREL31
- like function call relocations.
- 2010-12-07 Ian Lance Taylor <iant@google.com>
- * archive.cc (Archive::get_elf_object_for_member): Permit
- punconfigured to be NULL.
- (Archive::read_symbols): Pass NULL to get_elf_object_for_member.
- (Archive::include_member): Pass NULL to get_elf_object_for_member
- if we searched for the archive and this is the first included
- object.
- 2010-12-01 Ian Lance Taylor <iant@google.com>
- * dwarf_reader.h (class Sized_dwarf_line_info): Add
- track_relocs_type_ field.
- * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
- Set track_relocs_type_.
- (Sized_dwarf_line_info::process_one_opcode): Ignore the section
- contents when using RELA relocs.
- (Sized_dwarf_line_info::read_relocs): Add the reloc addend to
- reloc_map_.
- * reloc.cc (Track_relocs::next_addend): New function.
- * reloc.h (class Track_relocs): Declare next_addend.
- 2010-12-01 Ian Lance Taylor <iant@google.com>
- * testsuite/icf_virtual_function_folding_test.cc (class Bar): Add
- virtual destructor.
- 2010-12-01 Ian Lance Taylor <iant@google.com>
- * README: Update compilers known to work and fail.
- 2010-11-23 Matthias Klose <doko@ubuntu.com>
- * configure.in: For --enable-gold, handle value `default' instead of
- `both*'. Always install ld as ld.bfd, install as ld if gold is
- not the default.
- * configure: Regenerate.
- 2010-11-18 Doug Kwan <dougkwan@google.com>
- * expression.cc (BINARY_EXPRESSION): Initialize left_alignment
- and right_alignment to be zero. Store result alignment only if it is
- greater than existing alignment.
- 2010-11-16 Cary Coutant <ccoutant@google.com>
- PR gold/12220
- * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
- Check for ".zdebug_line".
- 2010-11-16 Doug Kwan <dougkwan@google.com>
- Cary Coutant <ccoutant@google.com>
- * output.h (Output_segment::set_section_addresses): Pass increase_relro
- by reference; adjust all callers.
- * output.cc (Output_segment::set_section_addresses): Adjust references
- to increase_relro. Add padding to *increase_relro when ORDER_RELRO_LAST
- list is empty.
- (Output_segment::set_offset): Assert if PT_GNU_RELRO segment does not
- end at page boundary.
- 2010-11-16 Cary Coutant <ccoutant@google.com>
- PR gold/12220
- * layout.cc (Layout::choose_output_section): Transform names of
- compressed sections even when using a script with a SECTIONS clause.
- (Layout::output_section_name): Remove code to transform
- compressed debug section names.
- * output.cc (Output_section::add_input_section): Use uncompressed
- section size when tracking input sections.
- 2010-11-11 Richard Sandiford <richard.sandiford@linaro.org>
- * symtab.h (Symbol::NON_PIC_REF): Remove.
- (Symbol::RELATIVE_REF, Symbol::TLS_REF): New Reference_flags.
- (Symbol::FUNCTION_CALL): Renumber. Reword comment.
- (Symbol::needs_dynamic_reloc): Don't check NON_PIC_REF.
- (Symbol::use_plt_offset): Take a flags argument and pass it
- directly to needs_dynamic_reloc. Restrict check for undefined
- weak symbols to function calls.
- * arm.cc (Target_arm::Scan::get_reference_flags): New function.
- (Target_arm::Scan::global): Use it.
- (Target_arm::Scan::scan_reloc_for_stub): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm::Relocate::should_apply_static_reloc): Replace flags
- parameter with an r_type parameter. Use get_reference_flags
- to get the flags.
- (Target_arm::Relocate::relocate): Update accordingly.
- * i386.cc (Target_i386::Scan::get_reference_flags): New function.
- (Target_i386::Scan::reloc_needs_plt_for_ifunc): Use it.
- (Target_i386::Scan::global): Likewise.
- (Target_i386::Relocate::relocate): Likewise.
- (Target_i386::Relocate::should_apply_static_reloc): Replace flags
- parameter with an r_type parameter. Use get_reference_flags
- to get the flags.
- (Target_i386::Relocate::relocate): Update accordingly.
- * powerpc.cc (Target_powerpc::Scan::get_reference_flags): New function.
- (Target_powerpc::Scan::global): Use it.
- (Target_powerpc::Scan::scan_reloc_for_stub): Likewise.
- (Target_powerpc::Relocate::relocate): Likewise.
- * sparc.cc (Target_sparc::Scan::get_reference_flags): New function.
- (Target_sparc::Scan::global): Use it.
- (Target_sparc::Scan::scan_reloc_for_stub): Likewise.
- (Target_sparc::Relocate::relocate): Likewise.
- * x86_64.cc (Target_x86_64::Scan::get_reference_flags): New function.
- (Target_x86_64::Scan::reloc_needs_plt_for_ifunc): Use it.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::Relocate::relocate): Likewise.
- 2010-11-08 Doug Kwan <dougkwan@google.com>
- Cary Coutant <ccoutant@google.com>
- * arm.cc (Arm_exidx_merge_section::build_contents): New method.
- (Arm_exidx_merge_section::section_contents_): New data member.
- (Arm_input_section::Arm_input_section): Initialize original_contents_.
- (Arm_input_section::~Arm_input_section): De-allocate memory.
- (Arm_input_section::original_contents_): New data member.
- (Arm_exidx_fixup::process_exidx_section): Pass EXIDX section contents
- in parameters instead of calling Object::section_contents without
- locking.
- (Arm_output_section::group_section): New parameter TASK. Pass it
- to callees that need locking objects.
- (Arm_output_section::fix_exidx_coverage): New parameter TASK. Use it
- to lock EXIDX input sections. Fix a formatting issue. Call
- Arm_exidx_merged_section::build_contents to create merged section
- contents.
- (Arm_output_section::create_stub_group): New parameter TASK. Use it
- to lock object of stub table owner.
- (Arm_exidx_input_section::Arm_exidx_input_section): Add new parameter
- TEXT_SIZE to initialize data member TEXT_SIZE_.
- (Arm_exidx_input_section::addralign): Fix typo in comment.
- (Arm_exidx_input_section::text_size): New method.
- (Target_arm::do_relax): New parameter TASK. Pass it to callees
- that require locking objects. Lock objects before scanning for stubs
- and updating local symbols.
- (Arm_input_section<big_endian>::init): Copy contents of original
- input section.
- (Arm_input_section<big_endian>::do_write): Use saved contents of
- original input section instead of calling Object::section_contents
- without locking.
- (Arm_exidx_cantunwind::do_fixed_endian_write): Find out text section
- size without calling Object::section_size().
- (Arm_exidx_merged_section::Arm_exidx_merged_section): Add sanity check
- for size. Allocate a buffer for merged EXIDX entries.
- (Arm_exidx_merged_section::build_contents): New method.
- (Arm_exidx_merged_section::do_write): Move merge section contents
- building code to Arm_exidx_merged_section::build_contetns. Write
- out contetns in buffer instead of building it on the fly.
- (Arm_relobj::make_exidx_input_section): Also pass text section size
- to Arm_exidx_input_section constructor.
- (Arm_relobj::do_read_symbols): Fix memory leak. Fix a formatting issue.
- (Arm_dynobj::do_read_symbols): Fix memory leak.
- * layout.cc (Layout::finalize): Pass TASK to Target::relax().
- * target.h: (class Task): Add forward declaration.
- (Target::relax): Add new parameter TASK and pass it to
- Target::do_relax().
- (Target::do_relax):: New parameter TASK. Fix a formatting issue.
- 2010-11-05 Cary Coutant <ccoutant@google.com>
- PR gold/10708
- * copy-relocs.cc (Copy_relocs::emit_copy_reloc): Hold a lock on the
- object when reading from the file.
- * gold.cc (queue_middle_tasks): Hold a lock on the object when doing
- second layout pass.
- * icf.cc (preprocess_for_unique_sections): Hold a lock on the object
- when reading section contents.
- (get_section_contents): Likewise.
- (icf::find_identical_sections): Likewise.
- * mapfile.cc (Mapfile::print_discarded_sections): Hold a lock on the
- object when reading from the file.
- * plugin.cc (Plugin_manager::layout_deferred_objects): Hold a lock on
- the object when doing deferred section layout.
- 2010-11-03 Nick Clifton <nickc@redhat.com>
- PR gold/12001
- * script.h (class Symbol_assignment: name): New member. Returns
- the name of the symbol.
- * scrfipt.cc (Script_options::is_pending_assignment): New member.
- Returns true if the given symbol name is on the list of
- assignments wating to be processed.
- * archive.cc (should_incldue_member): If the symbol is undefined,
- check to see if it is on the list of symbols pending assignment.
- 2010-11-03 Ryan Mansfield <rmansfield@qnx.com>
- * script-sections.cc (Script_sections::find_memory_region): Check
- for a NULL output section pointer.
- 2010-10-29 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_outout_section::fix_exidx_coverage): Adjust call to
- Output_section::add_relaxed_input_section.
- * output.cc (Output_section::add_relaxed_input_section): Add new
- arguments LAYOUT and NAME. Set section order index.
- (Output_section::convert_input_sections_in_list_to_relaxed_sections):
- Copy section order index.
- * output.h (Output_section::add_relaxed_input_section): Add new
- arguments LAYOUT and NAME.
- 2010-10-29 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * testsuite/Makefile.am: Move gcctestdir/ld rule to
- NATIVE_OR_CROSS_LINKER.
- * testsuite/Makefile.in: Regenerate.
- 2010-10-20 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::do_read_symbols): Warn about ARM EXIDX sections
- without SHF_LINK_ORDER flags.
- * layout.cc (Layout::choose_output_section): Do not filter
- SHF_LINK_ORDER flag in a relocatable link.
- 2010-10-17 Cary Coutant <ccoutant@google.com>
- * output.h (Output_segment::set_section_addresses): Change function
- signature. Update all callers.
- * output.cc (Output_segment::is_first_section_relro): Ignore TLS
- sections.
- (Output_segment::set_section_addresses): Align after last TLS
- section. Add padding before last relro section instead of after.
- 2010-10-17 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Target_arm::got_section): Use correct order and set
- GOT output section to be writable.
- 2010-10-14 Cary Coutant <ccoutant@google.com>
- * debug.h (DEBUG_INCREMENTAL): New flag.
- (debug_string_to_enum): Add DEBUG_INCREMENTAL).
- * gold.cc (queue_initial_tasks): Check parameters for incremental link
- mode.
- * incremental.cc (report_command_line): Ignore all forms of
- --incremental.
- * layout.cc (Layout::Layout): Check parameters for incremental link
- mode.
- * options.cc (General_options::parse_incremental): New function.
- (General_options::parse_no_incremental): New function.
- (General_options::parse_incremental_full): New function.
- (General_options::parse_incremental_update): New function.
- (General_options::incremental_mode_): New data member.
- (General_options::finalize): Check incremental_mode_.
- * options.h (General_options): Update help text for --incremental.
- Add --no-incremental, --incremental-full, --incremental-update.
- (General_options::Incremental_mode): New enum type.
- (General_options::incremental_mode): New function.
- (General_options::incremental_mode_): New data member.
- * parameters.cc (Parameters::incremental_mode_): New data member.
- (Parameters::set_options): Set incremental_mode_.
- (Parameters::set_incremental_full): New function.
- (Parameters::incremental): New function.
- (Parameters::incremental_update): New function.
- (set_parameters_incremental_full): New function.
- * parameters.h (Parameters::set_incremental_full): New function.
- (Parameters::incremental): New function.
- (Parameters::incremental_update): New function.
- (Parameters::incremental_mode_): New data member.
- (set_parameters_incremental_full): New function.
- * plugin.cc (Plugin_manager::add_input_file): Check parameters for
- incremental link mode.
- * reloc.cc (Sized_relobj::do_read_relocs): Likewise.
- (Sized_relobj::do_relocate_sections): Likewise.
- * testsuite/Makefile.am (incremental_test): Use --incremental-full
- option.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/incremental_test.sh: Filter all forms of --incremental.
- 2010-10-12 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * script-sections.h (class Script_sections): Make
- Sections_elements typedef public.
- * script-sections.cc (class Sort_output_sections): Add elements_
- field. Add constructor which sets it; change all callers.
- (Sort_output_sections::is_before): New function.
- (Sort_output_sections::operator()): Call is_before.
- * configure.ac (NATIVE_OR_CROSS_LINKER): New automake
- conditional.
- * testsuite/script_test_10.sh: New test. Test script section
- order.
- * testsuite/script_test_10.t: Likewise.
- * testsuite/script_test_10.s: Likewise.
- * testsuite/Makefile.am: Wrap the cross linker tests and the
- common tests into NATIVE_OR_CROSS_LINKER.
- (check_SCRIPTS): Add script_test_10.sh.
- (check_DATA): Add script_test_10.stdout.
- (script_test_10.o, script_test_10): New targets.
- (script_test_10.stdout): New target.
- * configure, testsuite/Makefile.in: Regenerate.
- 2010-10-12 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Target_arm::Scan::local): Report the unsupported reloc
- error for the deprecated relocations.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- 2010-10-12 Richard Sandiford <richard.sandiford@linaro.org>
- * fileread.cc (Input_file::find_file): Initialize *found_name
- and *namep when using the fallback search for case 4.
- 2010-10-11 Cary Coutant <ccoutant@google.com>
- * options.h (class General_options): Redefine -z lazy as an alias for
- the negation of -z now.
- 2010-10-11 Ian Lance Taylor <iant@google.com>
- * resolve.cc (symbol_to_bits): Report the value of the unsupported
- binding.
- 2010-10-06 Nick Clifton <nickc@redhat.com>
- * script-sections.cc(class Memory_region): Remove
- current_lma_offset_ field. Rename current_vma_offset_ to
- current_offset_. Add last_section_ field.
- (Memory_region::get_current_vma_address): Rename to
- get_current_address.
- (Memory_region::get_current_lma_address): Delete.
- (Memory_region::increment_vma_offset): Rename to
- increment_offset.
- (Memory_region::increment_lma_offset): Delete.
- (Memory_region::attributes_compatible): New method. Returns
- true if the provided section is compatible with the region.
- (Memory_region::get_last_section): New method. Returns the last
- section to use the region.
- (Memory_region::set_last_section): New method. Stores the last
- section to use the region.
- (Script_sections::block_in_region): New method. Returns true if
- a block of memory is contained within a region.
- (Script_sections::find_memory_region): New method. Locates a
- memory region to be used to set a VMA or LMA address.
- (Output_section_definition::set_section_addresses): Add code to
- check for addresses set by memory regions.
- (Output_segment::set_section_addresses): Remove memory region
- walking code.
- (Script_sections::create_segment): Add a warning if a header
- segment is created outside of any region.
- * script-sections.h (class Script_sections): Add prototypes for
- find_memory_region and block_in_region methods.
- * testsuite/memory_test.s: Use .long instead of .word.
- * testsuite/memory_test.t: Add some more output sections.
- * testsuite/memory_test.sh: Update expected output.
- 2010-10-02 Doug Kwan <dougkwan@google.com>
- * symtab.cc (Symbol_table::Symbol_table_hash::operator()): Move
- defintion to symtab.h
- * symtab.h (Symbol_table::Symbol_table_hash::operator()): Change
- declaration to defintion.
- 2010-10-01 Nick Clifton <nickc@redhat.com>
- * expression.cc (eval): Replace dummy argument with NULL.
- (eval_maybe_dot): Check for a NULL result section pointer.
- (Symbol_expression::value): Likewise.
- (Dot_expression::value): Likewise.
- (BINARY_EXPRESSION): Likewise.
- (Max_expression::value): Likewise.
- (Min_expression::value): Likewise.
- (Absolute_expression::value): Likewise.
- (Addr_expression::value_from_output_section): Likewise.
- (Loaddddr_expression::value_from_output_section): Likewise.
- (Segment_start_expression::value): Likewise.
- * script-sections.cc
- (Sections_elememt_dot_assignment::finalize_symbols): Replace dummy
- argument with NULL.
- (Sections_elememt_dot_assignment::set_section_addresses):
- Likewise.
- (Output_data_expression::do_write_to_buffer): Likewise.
- (Output_section_definition::finalize_symbols): Likewise.
- (Output_section_definition::set_section_addresses): Likewise.
- 2010-09-30 Doug Kwan <dougkwan@google.com>
- * gold/testsuite/arm_branch_out_of_range.sh: Fix broken tests.
- 2010-09-28 Sriraman Tallam <tmsriram@google.com>
- * target.h (Target::can_icf_inline_merge_sections): New virtual
- function.
- * x86_64.cc (Target__x86_64::can_icf_inline_merge_sections): New
- virtual function.
- * i386.cc (Target_i386::can_icf_inline_merge_sections): New
- virtual function.
- * icf.cc (get_section_contents): Inline merge sections only when
- target allows it.
- 2010-09-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * configure: Regenerate.
- 2010-09-17 Ian Lance Taylor <iant@google.com>
- * testsuite/memory_test.sh: Adjust for change of 2010-09-10.
- * testsuite/Makefile.am (memory_test.o): New target.
- (memory_test): Depend on memory_test.o, gcctestdir/ld, and
- memory_test.t.
- * testsuite/Makefile.in: Rebuild.
- 2010-09-17 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Relocate::relocate): Ignore symbol type and
- defintion if relocation uses GOT entries of the symbol.
- * testsuite/icf_safe_test.sh: Fix test.
- * testsuite/icf_safe_so_test.sh: Fix test.
- 2010-09-16 Cary Coutant <ccoutant@google.com>
- * script_sections.cc (class Memory_region): Remove "NULL" from
- vector initializations.
- 2010-09-15 Cary Coutant <ccoutant@google.com>
- * incremental.cc (Output_section_incremental_inputs::write_info_blocks):
- Resolve forwarding symbols.
- 2010-09-15 Doug Kwan <dougkwan@google.com>
- * gold/testsuite/script_test_3.t: Add ARM special sections.
- * gold/testsuite/script_test_4.t: Same.
- * gold/testsuite/script_test_5.t: Same.
- * gold/testsuite/script_test_6.t: Same.
- * gold/testsuite/script_test_7.t: Same.
- * gold/testsuite/script_test_7.t: Same.
- * gold/testsuite/thumb_blx_out_of_range.s: Fix instruction alignment.
- 2010-09-14 Cary Coutant <ccoutant@google.com>
- * x86_64.cc (Target_x86_64::saw_tls_block_reloc_): Remove member.
- (Target_x86_64::Relocate::relocate_tls): Replace check for
- saw_tls_block_reloc_ with test for executable section.
- 2010-09-12 Cary Coutant <ccoutant@google.com>
- * symtab.h (Symbol::needs_dynamic_reloc): Non-PIC calls from
- position-independent executables to shared libraries need dynamic
- relocations.
- (Symbol::may_need_copy_reloc): Do not generate COPY relocs in
- position-independent executables.
- * testsuite/Makefile.am (two_file_mixed_pie_test): New test.
- * testsuite/Makefile.in: Regenerate.
- 2010-09-10 Nick Clifton <nickc@redhat.com>
- PR gold/11997
- * testsuite/memory_test.t: Discard any sections that are not
- needed.
- 2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/11996
- * object.cc (Sized_relobj::do_finalize_local_symbols): Remove
- "This::" to work around a bug in gcc 4.2.
- * testsuite/ifuncmain7.c (foo_ifunc): Add __attribute__ ((used)).
- 2010-09-09 Rafael Espindola <espindola@google.com>
- * layout.cc (Layout::attach_allocated_section_to_segment): Don't put
- sections with different PF_X flags in the same segment.
- (Layout::find_first_load_seg): Search all segments to find the first
- one.
- * options.h (rosegment): New.
- 2010-09-08 Rafael Espindola <espindola@google.com>
- * layout.cc (Layout::set_segment_offsets): Always advance to a new page.
- 2010-09-08 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_cantunwind::do_print_to_mapfile): New method.
- (Arm_relobj::do_relocate_sections): Add new parameter for output
- file to match the parent.
- (Target_arm::scan_reloc_section_for_stubs): Use would-be final values
- of local symbols instead of input values. Update code to track
- changes in gold::relocate_section.
- * object.cc (Sized_relobj::compute_final_local_value): New methods.
- (Sized_relobj::compute_final_local_value_internal): New methods.
- (Sized_relobj::do_finalize_local_symbols): Move code from loop
- body into private version of Sized_relobj::compute_final_local_value.
- Call the inline method.
- * object.h (Symbol_value::Symbol_value): Define destructor. Free
- merged symbol value if there is one.
- (Symbol_value::has_output_value): New method defintiion.
- (Sized_relobj::Compute_final_local_value_status): New enum type.
- (Sized_relobj::compute_final_local_value): New methods.
- (Sized_relobj::compute_final_local_value_internal): New methods.
- * Makefile.am (check_SCRIPTS): Add arm_branch_out_of_range.sh
- and arm_cortex_a8.sh.
- (thumb_bl_out_of_range_local, arm_cortex_a8_b_cond, arm_cortex_a8_bl,
- arm_cortex_a8_blx, arm_cortex_a8_local, arm_corte_a8_local_reloc):
- New tests.
- * Makefile.in: Regenerate.
- * testsuite/arm_bl_out_of_range.s: Update test.
- * testsuite/thumb_bl_out_of_range.s: Ditto.
- * testsuite/thumb_blx_out_of_range.s: Ditto.
- * testsuite/arm_branch_out_of_range.sh: New file.
- * testsuite/arm_cortex_a8.sh: Ditto.
- * testsuite/arm_cortex_a8_b.s: Ditto.
- * testsuite/arm_cortex_a8_b_cond.s: Ditto.
- * testsuite/arm_cortex_a8_b_local.s: Ditto.
- * testsuite/arm_cortex_a8_bl.s: Ditto.
- * testsuite/arm_cortex_a8_blx.s: Ditto.
- * testsuite/arm_cortex_a8_local.s: Ditto.
- * testsuite/arm_cortex_a8_local_reloc.s: Ditto.
- * testsuite/thumb_bl_out_of_range_local.s: Ditto.
- 2010-09-08 Rafael Espindola <espindola@google.com>
- * Makefile.am (memory_test.stdout): Run readelf with -W.
- * Makefile.in: Regenerate.
- * testsuite/memory_test.sh: Make the regexps accept both 32 and
- 64 bit output.
- 2010-09-08 Rafael Espindola <espindola@google.com>
- * script-sections.cc (Script_sections::add_memory_region): Convert
- field precision to int.
- * script.cc (script_set_section_region, script_set_section_region):
- Convert field precision to int.
- 2010-09-08 Rafael Espindola <espindola@google.com>
- * arm.cc (do_finalize_sections): Create the __exidx_start and
- __exdix_end symbols even when the section is missing.
- 2010-09-08 Nick Clifton <nickc@redhat.com>
- * README: Remove claim that MEMORY is not supported.
- * expression.cc (script_exp_function_origin)
- (script_exp_function_length): Move from here to ...
- * script.cc: ... here.
- (script_set_section_region, script_add_memory)
- (script_parse_memory_attr, script_include_directive): New
- functions.
- * script-sections.cc
- (class Memory_region): New class.
- (class Output_section_definition): Add set_memory_region,
- set_section_vma, set_section_lma and get_section_name methods.
- (class Script_Sections): Add add_memory_region,
- find_memory_region, find_memory_region_origin,
- find_memory_region_length and set_memory_region methods.
- Have set_section_addresses method walk the list of set memory
- regions.
- Extend the print methos to display memory regions.
- * script-sections.h: Add prototypes for new methods.
- Add enum for MEMORY region attributes.
- * yyscript.y: Add support for parsing MEMORY regions.
- * script-c.h: Add prototypes for new functions.
- * testsuite/Makefile.am: Add test of MEMORY region functionality.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/memory_test.sh: New script.
- * testsuite/memory_test.s: New assembler source file.
- * testsuite/memory_test.t: New linker script.
- 2010-08-27 Doug Kwan <dougkwan@google.com>
- * gold/resolve.cc (Symbol_table::should_override): Let a weak
- reference override an existing dynamic weak reference.
- * testsuite/Makefile.am: Add new test dyn_weak_ref.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/dyn_weak_ref.sh: New file.
- * testsuite/dyn_weak_ref_1.c: Ditto.
- * testsuite/dyn_weak_ref_2.c: Ditto.
- 2010-08-27 Ian Lance Taylor <iant@google.com>
- * incremental.h (class Incremental_input_entry): Add virtual
- destructor.
- 2010-08-27 Ian Lance Taylor <iant@google.com>
- * testsuite/start_lib_test_3.c: Mark t3 as used.
- 2010-08-27 Nick Clifton <nickc@redhat.com>
- * options.cc (version_script): Fix small typo in previous
- whitespace tidyup.
- 2010-08-25 Nick Clifton <nickc@redhat.com>
- * archive.cc: Formatting fixes: Remove whitespace between
- typename and following asterisk. Remove whitespace between
- function name and opening parenthesis.
- * archive.h: Likewise.
- * arm.cc: Likewise.
- * attributes.cc: Likewise.
- * attributes.h: Likewise.
- * common.cc: Likewise.
- * copy-relocs.cc: Likewise.
- * dirsearch.h: Likewise.
- * dynobj.cc: Likewise.
- * ehframe.cc: Likewise.
- * ehframe.h: Likewise.
- * expression.cc: Likewise.
- * fileread.cc: Likewise.
- * fileread.h: Likewise.
- * gc.h: Likewise.
- * gold-threads.cc: Likewise.
- * gold.cc: Likewise.
- * i386.cc: Likewise.
- * icf.h: Likewise.
- * incremental-dump.cc: Likewise.
- * incremental.cc: Likewise.
- * layout.cc: Likewise.
- * layout.h: Likewise.
- * main.cc: Likewise.
- * merge.cc: Likewise.
- * merge.h: Likewise.
- * object.cc: Likewise.
- * object.h: Likewise.
- * options.cc: Likewise.
- * options.h: Likewise.
- * output.cc: Likewise.
- * output.h: Likewise.
- * plugin.cc: Likewise.
- * plugin.h: Likewise.
- * powerpc.cc: Likewise.
- * reloc.cc: Likewise.
- * script-c.h: Likewise.
- * script-sections.cc: Likewise.
- * script.cc: Likewise.
- * stringpool.cc: Likewise.
- * symtab.cc: Likewise.
- * symtab.h: Likewise.
- * target.cc: Likewise.
- * timer.cc: Likewise.
- * timer.h: Likewise.
- * version.cc: Likewise.
- * x86_64.cc: Likewise.
- 2010-08-24 Nick Clifton <nickc@redhat.com>
- PR 11899
- * layout.cc (segment_precedes): Sort segments by their physical
- addresses, if they have been set.
- 2010-08-23 Cary Coutant <ccoutant@google.com>
- * archive.cc (Lib_group::add_symbols): Lock object before deleting its
- symbols data.
- (Lib_group::include_member): Unlock object after deleting its
- symbols data.
- * testsuite/start_lib_test_3.c: Remove all global symbols to trigger
- the bug fixed here.
- 2010-08-19 Neil Vachharajani <nvachhar@google.com>
- Cary Coutant <ccoutant@google.com>
- * gold/archive.h (Add_lib_group_symbols): Add readsyms_blocker_, adjust
- constructor, and set_blocker.
- * gold/archive.cc (Add_lib_group_symbols::is_runnable): Also check
- readsyms_blocker_.
- * gold/readsyms.cc (Read_symbols::do_lib_group): Also pass
- this->this_blocker_ to Add_lib_group_symbols::set_blocker.
- * testsuite/Makefile.am (start_lib_test): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/start_lib_test_main.c: New file.
- * testsuite/start_lib_test_1.c: New file.
- * testsuite/start_lib_test_2.c: New file.
- * testsuite/start_lib_test_3.c: New file.
- 2010-08-19 Ian Lance Taylor <iant@google.com>
- * Makefile.in: Rebuild with automake 1.11.1.
- * aclocal.m4: Likewise.
- * testsuite/Makefile.in: Likewise.
- 2010-08-19 Ian Lance Taylor <iant@google.com>
- PR 10893
- * i386.cc (class Output_data_plt_i386): Update declarations.
- Define Global_ifunc and Local_ifunc types. Add global_ifuncs_ and
- local_ifuncs_ fields.
- (Target_i386::do_plt_section_for_global): New function.
- (Target_i386::do_plt_section_for_local): New function.
- (Output_data_plt_i386::Output_data_plt_i386): Add symtab
- parameter; change all callers. Initialize global_ifuncs_ and
- local_ifuncs_. If doing a static link define __rel_iplt_start and
- __rel_iplt_end.
- (Output_data_plt_i386::add_entry): Handle IFUNC symbols.
- (Output_data_plt_i386::add_local_ifunc_entry): New function.
- (Output_data_plt_i386::do_write): Fix GOT entries for IFUNC
- symbols.
- (Target_i386::make_plt_section): New function, broken out of
- make_plt_entry. Set sh_info field of .rel.plt to point to .plt.
- (Target_i386::make_plt_entry): Call make_plt_section.
- (Target_i386::make_local_ifunc_plt_entry): New function.
- (Target_i386::Scan::reloc_needs_iplt_for_ifunc): New function.
- (Target_i386::Scan::local): Handle IFUNC symbols. Add
- R_386_IRELATIVE to switch.
- (Target_i386::Scan::global): Likewise.
- (Target_i386::Relocate::relocate): Likewise.
- (Target_i386::Relocatable_size_for_reloc): Add R_386_IRELATIVE to
- switch.
- * x86_64.cc (class Output_data_plt_x86_64): Update declarations.
- (Target_x86_64::do_plt_section_for_global): New function.
- (Target_x86_64::do_plt_section_for_local): New function.
- (Output_data_plt_x86_64::Output_data_plt_x86_64): Add symtab
- parameter; change all callers. If doing a static link define
- __rela_iplt_start and __rela_iplt_end.
- (Output_data_plt_x86_64::add_entry): Handle IFUNC symbols.
- (Output_data_plt_x86_64::add_local_ifunc_entry): New function.
- (Target_x86_64::make_plt_section): Set sh_info field of .rel.plt
- to point to .plt.
- (Target_x86_64::make_local_ifunc_plt_entry): New function.
- (Target_x86_64::Scan::check_non_pic): Add R_X86_64_IRELATIVE to
- switch.
- (Target_x86_64::Scan::reloc_needs_iplt_for_ifunc): New function.
- (Target_x86_64::Scan::local): Handle IFUNC symbols. Add
- R_X86_64_IRELATIVE to switch.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::Relocate::relocate): Likewise.
- (Target_x86_64::Relocatable_size_for_reloc): Add R_X86_64_IRELATIVE to
- switch.
- * target.h (class Target): Add plt_section_for_global and
- plt_section_for_local functions. Add do_plt_section_for_global
- and do_plt_section_for_local virtual functions.
- * symtab.h (Symbol::needs_plt_entry): Handle IFUNC symbol. Add
- clarifying comments.
- (Symbol::use_plt_offset): Handle IFUNC symbol.
- * object.cc (Sized_relobj::Sized_relobj): Initialize
- local_plt_offsets_.
- (Sized_relobj::local_has_plt_offset): New function.
- (Sized_relobj::local_plt_offset): New function.
- (Sized_relobj::set_local_plt_offset): New function.
- (Sized_relobj::do_count): Handle IFUNC symbol.
- * object.h (class Symbol_value): Add is_ifunc_symbol_ field. Take
- a bit away from input_shndx_ field. Add set_is_func_symbol and
- is_ifunc_symbol functions.
- (class Sized_relobj): Update declarations. Remove Tls_got_entry
- and Local_tls_got_offsets. Define Local_plt_offsets. Add
- local_plt_offsets_ field.
- (Sized_relobj::clear_local_symbols): Clear local_plt_offsets_.
- * output.h (class Output_section_data): Add non-const
- output_section function.
- (class Output_data_got): Update declarations.
- (class Output_data_got::Got_entry): Add use_plt_offset_ field.
- Add use_plt_offset parameter to global and local constructors.
- Change all callers. Change local_sym_index_ field to 31 bits.
- Change GSYM_CODE and CONSTANT_CODE accordingly.
- * output.cc (Output_data_reloc_base::do_adjust_output_section): If
- doing a static link don't set sh_link field.
- (Output_data_got::Got_entry::write): Use PLT offset if
- appropriate.
- (Output_data_got::add_global_plt): New function.
- (Output_data_got::add_local_plt): New function.
- * target-reloc.h (relocate_section): Handle IFUNC symbol.
- * defstd.cc (in_section): Remove entries for __rel_iplt_start,
- __rel_iplt_end, __rela_iplt_start, and __rela_iplt_end.
- * configure.ac: Set IFUNC automake conditional for glibc >= 2.11.
- * testsuite/Makefile.am: Add a bunch of IFUNC tests, all within
- IFUNC conditional.
- * testsuite/ifunc-sel.h: New file.
- * testsuite/ifuncmain1.c: New file.
- * testsuite/ifuncmain1vis.c: New file.
- * testsuite/ifuncmod1.c: New file.
- * testsuite/ifuncdep2.c: New file.
- * testsuite/ifuncmain2.c: New file.
- * testsuite/ifuncmain3.c: New file.
- * testsuite/ifuncmod3.c: New file.
- * testsuite/ifuncmain4.c: New file.
- * testsuite/ifuncmain5.c: New file.
- * testsuite/ifuncmod5.c: New file.
- * testsuite/ifuncmain6pie.c: New file.
- * testsuite/ifuncmod6.c: New file.
- * testsuite/ifuncmain7.c: New file.
- * configure, testsuite/Makefile.in: Rebuild.
- 2010-08-18 Ian Lance Taylor <iant@google.com>
- * incremental.cc
- (Output_section_incremental_inputs::write_input_files): Add cast
- to avoid signed/unsigned comparison warning.
- (Output_section_incremental_inputs::write_info_blocks): Likewise.
- 2010-08-12 Cary Coutant <ccoutant@google.com>
- * common.cc (Sort_commons::operator()): Remove unnecessary code.
- 2010-08-13 Ian Lance Taylor <iant@google.com>
- * testsuite/incremental_test_1.c: Add prototype to avoid warning.
- 2010-08-12 Cary Coutant <ccoutant@google.com>
- Doug Kwan <dougkwan@google.com>
- * resolve.cc (Symbol_table::should_override): When a weak dynamic
- defintion overrides non-weak undef, remember that the original undef
- is not weak.
- * symtab.cc (Symbol_table::sized_write_global): For undef without
- an original weak binding, set binding to global in output.
- * testsuite/Makefile.am: Add new test strong_ref_weak_def.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/strong_ref_weak_def.sh: New file.
- * testsuite/strong_ref_weak_def_1.c: Ditto.
- * testsuite/strong_ref_weak_def_2.c: Ditto.
- 2010-08-12 Cary Coutant <ccoutant@google.com>
- * testsuite/incremental_test.sh: Rewrite.
- * testsuite/incremental_test_1.c: Rewrite.
- * testsuite/incremental_test_2.c: Rewrite.
- 2010-08-12 Cary Coutant <ccoutant@google.com>
- * arm.cc (Target_arm::got_size): Add const.
- (Target_arm::got_entry_count): New function.
- (Target_arm::plt_entry_count): New function.
- (Target_arm::first_plt_entry_offset): New function.
- (Target_arm::plt_entry_size): New function.
- (Output_data_plt_arm::entry_count): New function.
- (Output_data_plt_arm::first_plt_entry_offset): New function.
- (Output_data_plt_arm::get_plt_entry_size): New function.
- * i386.cc (Target_i386::got_size): Add const.
- (Target_i386::got_entry_count): New function.
- (Target_i386::plt_entry_count): New function.
- (Target_i386::first_plt_entry_offset): New function.
- (Target_i386::plt_entry_size): New function.
- (Output_data_plt_i386::entry_count): New function.
- (Output_data_plt_i386::first_plt_entry_offset): New function.
- (Output_data_plt_i386::get_plt_entry_size): New function.
- * incremental-dump.cc (dump_incremental_inputs): Adjust call to
- find_incremental_inputs_sections. Dump incremental_got_plt section.
- * incremental.cc: Include target.h.
- (Sized_incremental_binary::do_find_incremental_inputs_sections): Add
- parameter. Adjust all callers. Find incremental_got_plt section.
- (Incremental_inputs::create_data_sections): Create incremental_got_plt
- section.
- (Output_section_incremental_inputs::set_final_data_size): Calculate
- size of incremental_got_plt section.
- (Output_section_incremental_inputs::do_write): Write the
- incremental_got_plt section.
- (Got_plt_view_info): New struct.
- (Local_got_offset_visitor): New class.
- (Global_got_offset_visitor): New class.
- (Global_symbol_visitor_got_plt): New class.
- (Output_section_incremental_inputs::write_got_plt): New function.
- * incremental.h (Incremental_binary::find_incremental_inputs_sections):
- Add parameter. Adjust all callers.
- (Incremental_binary::do_find_incremental_inputs_sections): Likewise.
- (Incremental_inputs::got_plt_section): New function.
- (Incremental_inputs::got_plt_section_): New data member.
- (Incremental_got_plt_reader): New class.
- * layout.cc (Layout::create_incremental_info_sections): Add the
- incremental_got_plt section.
- * object.h (Got_offset_list::get_list): New function.
- (Got offset_list::for_all_got_offsets): New function.
- (Sized_relobj::local_got_offset_list): New function.
- * powerpc.cc (Target_powerpc::got_size): Add const.
- (Target_powerpc::got_entry_count): New function.
- (Target_powerpc::plt_entry_count): New function.
- (Target_powerpc::first_plt_entry_offset): New function.
- (Target_powerpc::plt_entry_size): New function.
- (Output_data_plt_powerpc::entry_count): New function.
- (Output_data_plt_powerpc::first_plt_entry_offset): New function.
- (Output_data_plt_powerpc::get_plt_entry_size): New function.
- * sparc.cc (Target_sparc::got_size): Add const.
- (Target_sparc::got_entry_count): New function.
- (Target_sparc::plt_entry_count): New function.
- (Target_sparc::first_plt_entry_offset): New function.
- (Target_sparc::plt_entry_size): New function.
- (Output_data_plt_sparc::entry_count): New function.
- (Output_data_plt_sparc::first_plt_entry_offset): New function.
- (Output_data_plt_sparc::get_plt_entry_size): New function.
- * symtab.h (Symbol::got_offset_list): New function.
- (Symbol_table::for_all_symbols): New function.
- * target.h (Sized_target::got_entry_count): New function.
- (Sized_target::plt_entry_count): New function.
- (Sized_target::plt_entry_size): New function.
- * x86_64.cc (Target_x86_64::got_size): Add const.
- (Target_x86_64::got_entry_count): New function.
- (Target_x86_64::plt_entry_count): New function.
- (Target_x86_64::first_plt_entry_offset): New function.
- (Target_x86_64::plt_entry_size): New function.
- (Output_data_plt_x86_64::entry_count): New function.
- (Output_data_plt_x86_64::first_plt_entry_offset): New function.
- (Output_data_plt_x86_64::get_plt_entry_size): New function.
- 2010-08-12 Cary Coutant <ccoutant@google.com>
- * archive.cc: Include incremental.h.
- (Archive::Archive): Initialize incremental_info_.
- (Archive::include_member): Record archive members in incremental info.
- (Add_archive_symbols::run): Record begin and end of an archive in
- incremental info.
- (Lib_group::include_member): Record objects in incremental info.
- * archive.h (Incremental_archive_entry): Forward declaration.
- (Archive::set_incremental_info): New member function.
- (Archive::incremental_info): New member function.
- (Archive::Unused_symbol_iterator): New class.
- (Archive::unused_symbols_begin): New member function.
- (Archive::unused_symbols_end): New member function.
- (Archive::incremental_info_): New data member.
- * incremental-dump.cc (find_input_containing_global): New function.
- (dump_incremental_inputs): Dump new incremental info sections.
- * incremental.cc: Include symtab.h.
- (Output_section_incremental_inputs): New class.
- (Sized_incremental_binary::do_find_incremental_inputs_sections): Support
- new incremental info sections.
- (Sized_incremental_binary::do_check_inputs): Likewise.
- (Incremental_inputs::report_archive): Remove.
- (Incremental_inputs::report_archive_begin): New function.
- (Incremental_inputs::report_archive_end): New function.
- (Incremental_inputs::report_object): New function.
- (Incremental_inputs::finalize_inputs): Remove.
- (Incremental_inputs::report_input_section): New function.
- (Incremental_inputs::report_script): Rewrite.
- (Incremental_inputs::finalize): Do nothing but finalize string table.
- (Incremental_inputs::create_incremental_inputs_section_data): Remove.
- (Incremental_inputs::sized_create_inputs_section_data): Remove.
- (Incremental_inputs::create_data_sections): New function.
- (Incremental_inputs::relocs_entsize): New function.
- (Output_section_incremental_inputs::set_final_data_size): New function.
- (Output_section_incremental_inputs::do_write): New function.
- (Output_section_incremental_inputs::write_header): New function.
- (Output_section_incremental_inputs::write_input_files): New function.
- (Output_section_incremental_inputs::write_info_blocks): New function.
- (Output_section_incremental_inputs::write_symtab): New function.
- * incremental.h (Incremental_script_entry): Forward declaration.
- (Incremental_object_entry): Forward declaration.
- (Incremental_archive_entry): Forward declaration.
- (Incremental_inputs): Forward declaration.
- (Incremental_inputs_header_data): Remove.
- (Incremental_inputs_header): Remove.
- (Incremental_inputs_header_write): Remove.
- (Incremental_inputs_entry_data): Remove.
- (Incremental_inputs_entry): Remove.
- (Incremental_inputs_entry_write): Remove.
- (enum Incremental_input_type): Add INCREMENTAL_INPUT_ARCHIVE_MEMBER.
- (Incremental_binary::find_incremental_inputs_sections): Add parameters.
- (Incremental_binary::do_find_incremental_inputs_sections): Likewise.
- (Sized_ncremental_binary::do_find_incremental_inputs_sections):
- Likewise.
- (Incremental_input_entry): New class.
- (Incremental_script_entry): New class.
- (Incremental_object_entry): New class.
- (Incremental_archive_entry): New class.
- (Incremental_inputs::Incremental_inputs): Initialize new data members.
- (Incremental_inputs::report_inputs): Remove.
- (Incremental_inputs::report_archive): Remove.
- (Incremental_inputs::report_archive_begin): New function.
- (Incremental_inputs::report_archive_end): New function.
- (Incremental_inputs::report_object): Change prototype.
- (Incremental_inputs::report_input_section): New function.
- (Incremental_inputs::report_script): Change prototype.
- (Incremental_inputs::get_reloc_count): New function.
- (Incremental_inputs::set_reloc_count): New function.
- (Incremental_inputs::create_data_sections): New function.
- (Incremental_inputs::create_incremental_inputs_section_data): Remove.
- (Incremental_inputs::inputs_section): New function.
- (Incremental_inputs::symtab_section): New function.
- (Incremental_inputs::relocs_section): New function.
- (Incremental_inputs::get_stringpool): Add const.
- (Incremental_inputs::command_line): Add const.
- (Incremental_inputs::inputs): Remove.
- (Incremental_inputs::command_line_key): New function.
- (Incremental_inputs::input_file_count): New function.
- (Incremental_inputs::input_files): New function.
- (Incremental_inputs::relocs_entsize): New function.
- (Incremental_inputs::sized_create_inputs_section_data): Remove.
- (Incremental_inputs::finalize_inputs): Remove.
- (Incremental_inputs::Input_info): Remove.
- (Incremental_inputs::lock_): Remove.
- (Incremental_inputs::inputs_): Change type.
- (Incremental_inputs::inputs_map_): Remove.
- (Incremental_inputs::current_object_entry_): New data member.
- (Incremental_inputs::inputs_section_): New data member.
- (Incremental_inputs::symtab_section_): New data member.
- (Incremental_inputs::relocs_section_): New data member.
- (Incremental_inputs::reloc_count_): New data member.
- (Incremental_inputs_reader): New class.
- (Incremental_symtab_reader): New class.
- (Incremental_relocs_reader): New class.
- * layout.cc (Layout::finalize): Move finalization of incremental info
- and creation of incremental info sections to follow finalization of
- symbol table. Set offsets for postprocessing sections.
- (Layout::create_incremental_info_sections): Call
- Incremental_inputs::create_data_sections. Add incremental symtab
- and relocs sections. Set sh_entsize and sh_link fields. Arrange for
- sections to layout after input sections.
- * layout.h (struct Timespec): Forward declaration.
- (Layout::incremental_inputs): Add const.
- (Layout::create_incremental_info_sections): Add parameter.
- * main.cc (main): Remove call to Incremental_inputs::report_inputs.
- * object.cc: Include incremental.h.
- (Relobj::finalize_incremental_relocs): New function.
- (Sized_relobj::do_layout): Record input sections in incremental info.
- * object.h (Object::output_section): New function.
- (Object::output_section_offset): Moved from Relobj.
- (Object::get_incremental_reloc_base): New function.
- (Object::get_incremental_reloc_count): New function.
- (Object::do_output_section): New function.
- (Object::do_output_section_offset): Moved from Relobj.
- (Object::do_get_incremental_reloc_base): New function.
- (Object::do_get_incremental_reloc_count): New function.
- (Object::Object): Initialize new data members.
- (Relobj::output_section): Renamed do_output_section and moved to
- protected.
- (Relobj::output_section_offset): Moved to Object.
- (Relobj::do_get_incremental_reloc_base): New function.
- (Relobj::do_get_incremental_reloc_count): New function.
- (Relobj::allocate_incremental_reloc_counts): New function.
- (Relobj::count_incremental_reloc): New function.
- (Relobj::finalize_incremental_relocs): New function.
- (Relobj::next_incremental_reloc_index): New function.
- (Relobj::reloc_counts_): New data member.
- (Relobj::reloc_bases_): New data member.
- (Sized_relobj::do_relocate_sections): Add parameter. Change caller.
- (Sized_relobj::relocate_sections): Add parameter. Change all callers.
- (Sized_relobj::incremental_relocs_scan): New function.
- (Sized_relobj::incremental_relocs_scan_reltype): New function.
- (Sized_relobj::incremental_relocs_write): New function.
- (Sized_relobj::incremental_relocs_write_reltype): New function.
- * plugin.cc (Plugin_manager::add_input_file): Rewrite test for
- incremental link.
- * readsyms.cc (Read_symbols::do_read_symbols): Move reporting of
- archives and object files elsewhere.
- (Add_symbols::run): Report object files here.
- (Finish_group::run): Report end of archive at end of group.
- * reloc.cc: Include layout.h, incremental.h.
- (Sized_relobj::do_read_relocs): Need relocations for incremental link.
- (Sized_relobj::do_scan_relocs): Record relocations for incremental link.
- (Sized_relobj::incremental_relocs_scan): New function.
- (Sized_relobj::incremental_relocs_scan_reltype): New function.
- (Sized_relobj::do_relocate_sections): Write incremental relocations.
- (Sized_relobj::incremental_relocs_write): New function.
- (Sized_relobj::incremental_relocs_write_reltype): New function.
- * script.cc (read_input_script): Rewrite test for incremental link.
- Change call to Incremental_inputs::report_script.
- * symtab.h (Symbol_table::first_global_index): New function.
- (Symbol_table::output_count): New function.
- 2010-08-12 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::merge_object_attributes): Check command line
- options --no-wchar-size-warning and --no-enum-size-warning.
- * options.h (General_options): Add ld-compatible options
- --no-enum-size-warning and --no-wchar-size-warning.
- 2010-08-04 Ian Lance Taylor <iant@google.com>
- * x86_64.cc (Target_x86_64::Scan::local): Use
- R_X86_64_GNU_VTINHERIT instead of R_386_GNU_VTINHERIT and
- R_X86_64_GNU_VTENTRY instead of R_386_GNU_VTENTRY.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::Relocate::relocate): Likewise.
- (Target_x86_64::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- 2010-08-03 Cary Coutant <ccoutant@google.com>
- * merge.cc (Output_merge_string::do_add_input_section): Count strings
- to reserve space in merged_strings vector. Keep total input size
- for stats.
- (Output_merge_string::do_print_merge_stats): Print total input size.
- * merge.h (Output_merge_string): Add input_size_ field.
- * stringpool.cc (Stringpool_template::string_length): Move
- implementations out of Stringpool_template class and place in
- stringpool.h.
- * stringpool.h (string_length): Move out of Stringpool_template.
- 2010-08-03 Ian Lance Taylor <iant@google.com>
- PR 11712
- * layout.cc (relaxation_loop_body): If address of load segment is
- set, adjust address to include headers if possible.
- 2010-08-03 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Bump to 1.10.
- 2010-08-03 Ian Lance Taylor <iant@google.com>
- PR 11805
- * layout.h (enum Output_section_order): Define.
- (class Layout): Update declarations.
- * layout.cc (Layout::get_output_section): Add order parameter.
- Remove is_interp, is_dynamic_linker_section, is_last_relro, and
- is_first_non_relro parameters. Change all callers.
- (Layout::choose_output_section): Likewise.
- (Layout::add_output_section_data): Likewise.
- (Layout::make_output_section): Likewise. Set order.
- (Layout::default_section_order): New function.
- (Layout::layout_eh_frame): Call add_output_section_to_nonload.
- * output.cc (Output_section::Output_section): Initialize order_.
- Don't initialize deleted fields.
- (Output_segment::Output_segment): Don't initialize deleted
- fields.
- (Output_segment::add_output_section_to_load): New function
- replacing add_output_section. Change all callers to call this or
- add_output_section_to_nonload.
- (Output_segment::add_output_section_to_nonload): New function.
- (Output_segment::remove_output_section): Rewrite.
- (Output_segment::add_initial_output_data): Likewise.
- (Output_segment::has_any_data_sections): Likewise.
- (Output_segment::is_first_section_relro): Likewise.
- (Output_segment::maximum_alignment): Likewise.
- (Output_segment::has_dynamic_reloc): New function replacing
- dynamic_reloc_count. Change all callers.
- (Output_segment::has_dynamic_reloc_list): New function replacing
- dynamic_reloc_count_list. Change all callers.
- (Output_segment::set_section_addresses): Rewrite.
- (Output_segment::set_offset): Rewrite.
- (Output_segment::find_first_and_last_list): Remove.
- (Output_segment::set_tls_offsets): Rewrite.
- (Output_segment::first_section_load_address): Likewise.
- (Output_segment::output_section_count): Likewise.
- (Output_segment::section_with_lowest_load_address): Likewise.
- (Output_segment::write_section_headers): Likewise.
- (Output_segment::print_sections_to_map): Likewise.
- * output.h (class Output_data): Remove dynamic_reloc_count_
- field. Add has_dynamic_reloc_ field. Make bools into bitfields.
- (Output_data::add_dynamic_reloc): Rewrite.
- (Output_data::has_dynamic_reloc): New function.
- (Output_data::dynamic_reloc_count): Remove.
- (class Output_section): Add order_ field. Remvoe is_relro_local_,
- is_last_relro_, is_first_non_relro_, is_interp_,
- is_dynamic_linker_section_ fields. Add order and set_order
- functions. Remove is_relro_local, set_is_relro_local,
- is_last_relro, set_is_last_relro, is_first_non_relro,
- set_is_first_non_relro functions, is_interp, set_is_interp,
- is_dynamic_linker_section, and set_is_dynamic_linker_section
- functions.
- (class Output_segment): Change Output_data_list from std::list to
- std:;vector. Add output_lists_ field. Remove output_data_ and
- output_bss_ fields. Update declarations.
- 2010-08-02 Ian Lance Taylor <iant@google.com>
- * arm.cc (Target_arm::gc_process_relocs): Use typename.
- * powerpc.cc (Target_powerpc::gc_process_relocs): Likewise.
- * sparc.cc (Target_sparc::gc_process_relocs): Likewise.
- 2010-08-02 Ian Lance Taylor <iant@google.com>
- PR 11855
- * script.cc (Script_options::Script_options): Initialize
- symbol_definitions_ and symbol_references_.
- (Script_options::add_symbol_assignment): Update
- symbol_definitions_ and symbol_references_.
- (Script_options::add_symbol_reference): New function.
- (script_symbol): New function.
- * script.h (class Script_options): Add symbol_definitions_ and
- symbol_references_ fields.
- (Script_options::referenced_const_iterator): New type.
- (Script_options::referenced_begin): New function.
- (Script_options::referenced_end): New function.
- (Script_options::is_referenced): New function.
- (Script_options::any_unreferenced): New function.
- * script-c.h (script_symbol): Declare.
- * yyscript.y (exp): Call script_symbol.
- * symtab.cc: Include "script.h".
- (Symbol_table::gc_mark_undef_symbols): Add layout parameter.
- Change all callers. Check symbols referenced by scripts.
- (Symbol_table::add_undefined_symbols_from_command_line): Add
- layout parameter. Change all callers.
- (Symbol_table::do_add_undefined_symbols_from_command_line):
- Likewise. Break out loop body. Check symbols referenced by
- scripts.
- (Symbol_table::add_undefined_symbol_from_command_line): New
- function broken out of
- do_add_undefined_symbols_from_command_line.
- * symtab.h (class Symbol_table): Update declarations.
- * archive.cc: Include "layout.h".
- (Archive::should_include_member): Add layout parameter. Change
- all callers. Check for symbol mentioned in expression.
- * archive.h (class Archive): Update declaration.
- * object.cc (Sized_relobj::do_should_include_member): Add layout
- parameter.
- * object.h (Object::should_include_member): Add layout parameter.
- Change all callers.
- (Object::do_should_include_member): Add layout parameter.
- (class Sized_relobj): Update declaration.
- * dynobj.cc (Sized_dynobj::do_should_include_member): Add layout
- parameter.
- * dynobj.h (class Sized_dynobj): Update declaration.
- * plugin.cc (Sized_pluginobj::do_should_include_member): Add
- layout parameter.
- * plugin.h (class Sized_pluginobj): Update declaration.
- 2010-08-02 Ian Lance Taylor <iant@google.com>
- PR 11866
- * output.cc (Output_segment::set_offset): Search for the first and
- last sections rather than assuming that the list is in order.
- (Output_segment::find_first_and_last_list): New function.
- * output.h (class Output_segment): Update declarations.
- * testsuite/Makefile.am (check_PROGRAMS): Add relro_strip_test.
- (relro_strip_test_SOURCES): New variable.
- (relro_strip_test_DEPENDENCIES): New variable.
- (relro_strip_test_LDFLAGS): New variable.
- (relro_strip_test_LDADD): New variable.
- (relro_strip_test.so): New target.
- 2010-08-02 Ian Lance Taylor <iant@google.com>
- * i386.cc (class Target_i386): Add got_tlsdesc_ field.
- (Target_i386::Target_i386):: Initialize got_tlsdesc_.
- (Target_i386::got_tlsdesc_section): New function.
- (Target_i386::got_section): Create space for GOT entries for
- TLSDESC relocations.
- (Target_i386::Scan::local): Use TLSDESC GOT for unoptimized
- R_386_TLS_GOTDESC.
- (Target_i386::Scan::global): Likewise.
- (Target_i386::Relocate::relocate_tls): Adjust GOT offset when
- using TLSDESC GOT.
- * x86_64.cc (class Target_x86_64): Add got_tlsdesc_ field.
- (Target_x86_64::Target_x86_64):: Initialize got_tlsdesc_.
- (Target_x86_64::got_tlsdesc_section): New function.
- (Target_x86_64::got_section): Create space for GOT entries for
- TLSDESC relocations.
- (Target_x86_64::Scan::local): Use TLSDESC GOT for unoptimized
- R_386_TLS_GOTDESC.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::Relocate::relocate_tls): Adjust GOT offset when
- using TLSDESC GOT.
- 2010-08-02 Ian Lance Taylor <iant@google.com>
- * testsuite/final_layout.sh: Use dc to convert from hex to
- decimal.
- 2010-07-29 Sriraman Tallam <tmsriram@google.com>
- * arm.cc (Target_arm<big_endian>::gc_process_relocs): Add template
- paramter to the call to gold::gc_process_relocs.
- * i386.cc (Target_i386<big_endian>::gc_process_relocs): Add template
- paramter to the call to gold::gc_process_relocs.
- * x86_64.cc (Target_x86_64<big_endian>::gc_process_relocs): Add template
- parameter to the call to gold::gc_process_relocs.
- * powerpc.cc (Target_powerpc<big_endian>::gc_process_relocs): Add
- template parameter to the call to gold::gc_process_relocs.
- * sparc.cc (Target_sparc<big_endian>::gc_process_relocs): Add template
- paramter to the call to gold::gc_process_relocs.
- * gc.h (get_embedded_addend_size): New function.
- (gc_process_relocs): Save the size of the reloc for use by ICF.
- * icf.cc (get_section_contents): Get the addend from the text section
- for SHT_REL relocation sections.
- * icf.h (Icf::Reloc_addend_size_info): New typedef.
- (Icf::Reloc_info): Add new member reloc_addend_size_info.
- * int_encoding.h (read_from_pointer): New overloaded function.
- * testsuite/Makefile.am (icf_sht_rel_addend_test): New test.
- * testsuite/icf_sht_rel_addend_test.sh: New file.
- * testsuite/icf_sht_rel_addend_test_1.cc: New file.
- * testsuite/icf_sht_rel_addend_test_2.cc: New file.
- 2010-07-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * configure.ac (AM_INIT_AUTOMAKE): Use parallel-tests option.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2010-07-27 Jeffrey Yasskin <jyasskin@google.com>
- * testsuite/debug_msg.sh: Test mixed weak/strong symbol behavior.
- * gold/testsuite/debug_msg.cc: Likewise.
- * gold/testsuite/odr_violation1.cc
- * gold/testsuite/odr_violation2.cc
- 2010-07-21 Cary Coutant <ccoutant@google.com>
- * merge.h (Output_merge_string::Merged_string): Remove object, shndx,
- string, and length fields.
- (Output_merge_string::Merged_strings_list): New type.
- (Output_merge_string::Merged_strings_lists): New typedef.
- (Output_merge_string): Replace merged_strings_ with
- merged_strings_lists_.
- * merge.cc (Output_merge_string::do_add_input_section): Allocate new
- Merged_strings_list per input object and section. Don't store pointer
- to the string. Don't store length with each merged string entry.
- (Output_merge_string::finalize_merged_data): Loop over list of merged
- strings lists. Recompute length of each merged string.
- 2010-07-15 Cary Coutant <ccoutant@google.com>
- * plugin.cc (Plugin_finish::run): Don't call cleanup handlers from
- here.
- 2010-07-14 Ian Lance Taylor <iant@google.com>
- * descriptors.cc (Descriptors::open): Report correct name in error
- message.
- 2010-07-13 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_input_section::Arm_input_section): For a
- SHT_ARM_EXIDX section, always keeps the input sections.
- (Arm_input_section::set_exidx_section_link): New method.
- (Arm_exidx_input_section::Arm_exidx_input_section): Initialize
- has_errors_ to false.
- (Arm_exidx_input_section::has_errors,
- Arm_exidx_input_section::set_has_errors): New methods.
- (Arm_exidx_input_section::has_errors_): New data member.
- (Arm_relobj::get_exidx_shndx_list): New method.
- (Arm_output_section::append_text_sections_to_list): Do not skip
- section without SHF_EXECINSTR.
- (Arm_output_section::fix_exidx_coverage): Skip input sections with
- errors.
- (Arm_relobj::make_exidx_input_section): Add new parameter for text
- section header. Make error messages more verbose. Check for
- a non-executable section linked to an EXIDX section.
- (Arm_relobj::do_read_symbols): Remove error checking, which has been
- moved to Arm_relobj::make_exidx_input_section. Add an assertion to
- check that there is no deferred EXIDX section if we exit early.
- Instead of not making an EXIDX section in case of an error, make one
- and set the has_errors flag of it.
- (Target_arm::do_finalize_sections): Fix up links of EXIDX sections
- in a relocatable link.
- (Target_arm::do_relax): Look for the EXIDX output section instead of
- assuming that it is called .ARM.exidx.
- (Target_arm::fix_exidx_coverage): Add a new parameter for input
- section list. Do not check for SHF_EXECINSTR section flags but
- skip any input section with errors.
- * output.cc (Output_section::Output_section): Initialize
- always_keeps_input_sections_ to false.
- (Output_section::add_input_section): Check for
- always_keeps_input_sections_.
- * output.h (Output_section::always_keeps_input_sections,
- Output_section::set_always_keeps_input_sections): New methods.
- (Output_section::always_keeps_input_sections): New data member.
- 2010-07-13 Rafael Espindola <espindola@google.com>
- * fileread.cc (try_extra_search_path, find_file): Move to Input_file.
- * fileread.h (Input_file): Add try_extra_search_path and find_file.
- 2010-07-13 Philip Herron <herron.philip@googlemail.com>
- Ian Lance Taylor <iant@google.com>
- * output.h (Output_section_lookup_maps::add_merge_section):
- Correct check of whether value was inserted.
- (Output_section_lookup_maps::add_merge_input_section): Likewise.
- (Output_section_lookup_maps::add_relaxed_input_section):
- Likewise.
- * arm.cc (Target_arm::got_section): Remove used local os.
- * i386.cc (Target_i386::got_section): Likewise.
- * x86_64.cc (Target_x86_64::got_section): Likewise.
- * sparc.cc (Target_sparc::got_section): Likewise.
- (Target_sparc::relocate): Remove unused local have_got_offset.
- * powerpc.cc (Target_powerpc::relocate): Likewise.
- 2010-07-13 Ian Lance Taylor <iant@google.com>
- * compressed_output.cc (zlib_decompress): Fix signature in
- !HAVE_ZLIB_H case.
- * archive.cc (Archive::include_member): Unlock an external member
- of a thin archive. Don't bother to delete an object we know is
- NULL.
- 2010-07-12 Cary Coutant <ccoutant@google.com>
- * compressed_output.cc (zlib_decompress): New function.
- (get_uncompressed_size): New function.
- (decompress_input_section): New function.
- * compressed_output.h (get_uncompressed_size): New function.
- (decompress_input_section): New function.
- * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info)
- Handle compressed debug sections.
- * layout.cc (is_compressed_debug_section): New function.
- (Layout::output_section_name): Map compressed section names to
- canonical names.
- * layout.h (is_compressed_debug_section): New function.
- (is_debug_info_section): Recognize compressed debug sections.
- * merge.cc: Include compressed_output.h.
- (Output_merge_data::do_add_input_section): Handle compressed
- debug sections.
- (Output_merge_string::do_add_input_section): Handle compressed
- debug sections.
- * object.cc: Include compressed_output.h.
- (Sized_relobj::Sized_relobj): Initialize new data members.
- (build_compressed_section_map): New function.
- (Sized_relobj::do_read_symbols): Handle compressed debug sections.
- * object.h (Object::section_is_compressed): New method.
- (Object::do_section_is_compressed): New method.
- (Sized_relobj::Compressed_section_map): New type.
- (Sized_relobj::do_section_is_compressed): New method.
- (Sized_relobj::compressed_sections_): New data member.
- * output.cc (Output_section::add_input_section): Handle compressed
- debug sections.
- * reloc.cc: Include compressed_output.h.
- (Sized_relobj::write_sections): Handle compressed debug sections.
- 2010-07-08 Cary Coutant <ccoutant@google.com>
- * resolve.cc (Symbol_table::resolve): Remember whether undef was
- weak when resolving to a dynamic def.
- (Symbol_table::should_override): Add adjust_dyndef flag; set it
- for weak undef/dynamic def cases. Adjust callers.
- * symtab.cc (Symbol::init_fields): Initialize undef_binding_set_ and
- undef_binding_weak_.
- (Symbol_table::sized_write_globals): Adjust symbol binding.
- (Symbol_table::sized_write_symbol): Add binding parameter.
- * symtab.h (Symbol::set_undef_binding): New method.
- (Symbol::is_undef_binding_weak): New method.
- (Symbol::undef_binding_set_, Symbol::undef_binding_weak_): New members.
- (Symbol_table::should_override): Add new parameter.
- (Symbol_table::sized_write_symbol): Add new parameter.
- * testsuite/weak_undef_file1.cc: Add new test case.
- * testsuite/weak_undef_file2.cc: Fix header comment.
- * testsuite/weak_undef_test.cc: Add new test case.
- 2010-06-29 Doug Kwan <dougkwan@google.com>
- * arm-reloc-property.cc (Arm_reloc_property::Arm_reloc_property):
- Initialize USE_SYMBOL_.
- * arm-reloc-property.h (Arm_reloc_property::uses_symbol): New method
- definition.
- (Arm_reloc_property::uses_symbol_): New data member declaration.
- * arm.cc (Target_arm::Relocate::relocate): Exit early if relocation
- uses symbol value and symbol is undefined but not weakly undefined.
- 2010-06-28 Rafael Espindola <espindola@google.com>
- * plugin.cc (Plugin::load): Use dlerror.
- 2010-06-26 Jeffrey Yaskin <jyasskin@google.com>
- * symtab.cc (detect_odr_violations): When reporting an ODR
- violation, report an object where the symbol is defined.
- 2010-06-25 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::can_check_for_functions_pointers): Return true.
- (Target_arm::section_may_have_icf_unsafe_pointers): New method
- definition.
- (Target_arm::Scan::local_reloc_may_be_function_pointer,
- Target_arm::Scan::global_reloc_may_be_function_pointer): Implement
- target hook to detect function points.
- (Target_arm::Scan::possible_function_pointer_reloc): New method.
- * icf.h (Icf::check_section_for_function_pointers): Change type of
- parameter SECTION_NAME to const reference to std::string. Use
- target hook to determine if section may have unsafe pointers.
- * target.h (Target::section_may_have_icf_unsafe_pointers): New
- method definition.
- 2010-06-21 Rafael Espindola <espindola@google.com>
- * fileread.cc (Input_file::find_fie): New
- (Input_file::open): Use Input_file::find_fie.
- * fileread.h (Input_file::find_fie): New
- * plugin.cc (set_extra_library_path): New.
- (Plugin::load): Add set_extra_library_path to the transfer vector.
- (Plugin_manager::set_extra_library_path): New.
- (Plugin_manager::add_input_file): Use the extra search path if set.
- (set_extra_library_path(): New.
- * plugin.h (Plugin_manager): Add set_extra_library_path and
- extra_search_path_.
- 2010-06-19 Cary Coutant <ccoutant@google.com>
- * layout.cc (gdb_sections): Add .debug_types.
- (lines_only_debug_sections): Likewise.
- 2010-06-18 Rafael Espindola <espindola@google.com>
- * plugin.cc (add_input_file,add_input_library)
- (Plugin_manager::add_input_file): Make filename arguments const.
- * plugin.h (Plugin_manager::add_input_file): Make filename arguments
- const.
- 2010-06-16 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_finalize_sections): Do not emit an
- .ARM.attributes section if we have not merged any input
- attributes sections.
- 2010-06-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc: Allow combining objects with no EABI version
- information.
- 2010-06-15 Rafael Espindola <espindola@google.com>
- * plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol.
- 2010-06-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * fileread.cc: Only #include <sys/uio.h> if HAVE_READV.
- (struct iovec): Correct !HAVE_READV definition.
- 2010-06-10 Cary Coutant <ccoutant@google.com>
- * object.cc (Sized_relobj::do_layout): Defer layout for reloc sections.
- (Sized_relobj::do_layout_deferred_sections): Do layout for deferred
- reloc sections.
- * object.h (Sized_relobj::deferred_layout_relocs_): New data member.
- PR 11683
- * symtab.h (Symbol::is_placeholder): New member function.
- * target-reloc.h (relocate_section): Check for placeholder symbols.
- * testsuite/Makefile.am (plugin_test_8): New test.
- (plugin_test_9): New test.
- * testsuite/Makefile.in: Regenerate.
- 2010-06-09 Nick Clifton <nickc@redhat.com>
- * yyscript.y (input_list_element): Allow strings prefixed with
- the '-' character. Treat these as libraries.
- * script.cc (script_add_library): New function. Adds a library
- specified by "-l<name>" found in an input script.
- * script-c.h: Add prototype for script_add_library.
- 2010-06-07 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_relax): Reserve more space for stubs.
- Restrict stub-group size to be within long conditional branch
- range when working around cortex-A8 erratum.
- 2010-06-07 Damien Diederen <dd@crosstwine.com>
- * gold-threads.cc (Lock_impl_threads::Lock_impl_threads): Correct
- #ifdef typo.
- 2010-06-03 Sriraman Tallam <tmsriram@google.com>
- PR gold/11658
- * output.cc
- (Output_section::Input_section_sort_entry::compare_section_ordering):
- Change to return non-zero correctly.
- (Output_section::Input_section_sort_section_order_index_compare
- ::operator()): Change to fix ambiguity in comparisons.
- 2010-06-01 Sriraman Tallam <tmsriram@google.com>
- * gold.h (is_wildcard_string): New function.
- * layout.cc (Layout::layout): Pass this pointer to add_input_section.
- (Layout::layout_eh_frame): Ditto.
- (Layout::find_section_order_index): New method.
- (Layout::read_layout_from_file): New method.
- * layout.h (Layout::find_section_order_index): New method.
- (Layout::read_layout_from_file): New method.
- (Layout::input_section_position_): New private member.
- (Layout::input_section_glob_): New private member.
- * main.cc (main): Call read_layout_from_file here.
- * options.h (--section-ordering-file): New option.
- * output.cc (Output_section::input_section_order_specified_): New
- member.
- (Output_section::Output_section): Initialize new member.
- (Output_section::add_input_section): Add new parameter.
- Keep input sections when --section-ordering-file is used.
- (Output_section::set_final_data_size): Sort input sections when
- section ordering file is specified.
- (Output_section::Input_section_sort_entry): Add new parameter.
- Check sorting type.
- (Output_section::Input_section_sort_entry::compare_section_ordering):
- New method.
- (Output_section::Input_section_sort_compare::operator()): Change to
- consider section_order_index.
- (Output_section::Input_section_sort_init_fini_compare::operator()):
- Change to consider section_order_index.
- (Output_section::Input_section_sort_section_order_index_compare
- ::operator()): New method.
- (Output_section::sort_attached_input_sections): Change to sort
- according to section order when specified.
- (Output_section::add_input_section<32, true>): Add new parameter.
- (Output_section::add_input_section<64, true>): Add new parameter.
- (Output_section::add_input_section<32, false>): Add new parameter.
- (Output_section::add_input_section<64, false>): Add new parameter.
- * output.h (Output_section::add_input_section): Add new parameter.
- (Output_section::input_section_order_specified): New
- method.
- (Output_section::set_input_section_order_specified): New method.
- (Input_section::Input_section): Initialize section_order_index_.
- (Input_section::section_order_index): New method.
- (Input_section::set_section_order_index): New method.
- (Input_section::section_order_index_): New member.
- (Input_section::Input_section_sort_section_order_index_compare): New
- struct.
- (Output_section::input_section_order_specified_): New member.
- * script-sections.cc (is_wildcard_string): Delete and move modified
- method to gold.h.
- (Output_section_element_input::Output_section_element_input): Modify
- call to is_wildcard_string.
- (Output_section_element_input::Input_section_pattern
- ::Input_section_pattern): Ditto.
- (Output_section_element_input::Output_section_element_input): Ditto.
- * testsuite/Makefile.am (final_layout): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/final_layout.cc: New file.
- * testsuite/final_layout.sh: New file.
- 2010-06-01 Rafael Espindola <espindola@google.com>
- * plugin.cc (Plugin::load): Pass the output name to the plugin.
- 2010-06-01 Rafael Espindola <espindola@google.com>
- * plugin.cc (Sized_pluginobj::::do_add_symbols): Correctly set the
- visibility of symbols.
- 2010-05-27 Doug Kwan <dougkwan@google.com>
- * object.cc (Sized_relobj::do_finalize_local_symbols): Use offset
- from start of output section instead of address for a local symbol
- in a merged or relaxed section when doing a relocatable link.
- 2010-05-26 Rafael Espindola <espindola@google.com>
- PR 11604
- * gold/object.cc(Sized_relobj::do_layout_deferred_sections): Avoid
- adding sections the garbage collector removed.
- * gold/testsuite/Makefile.am: Add test.
- * gold/testsuite/Makefile.in: Regenerate.
- * gold/testsuite/plugin_test_7.sh: New.
- * gold/testsuite/plugin_test_7_1.c: New.
- * gold/testsuite/plugin_test_7_2.c: New.
- 2010-05-26 Rafael Espindola <espindola@google.com>
- * script-sections.cc (Output_section_definition::set_section_addresses):
- Check for --section-start.
- 2010-05-26 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_scan_relocatable_relocs): New class.
- (Target_arm::relocate_special_relocatable): New method.
- (Arm_relocate_functions::arm_branch_common): Handle relocatable link.
- (Arm_relocate_functions::thumb_branch_common): Same.
- (Target_arm::scan_relocatable_relocs): Use Arm_scan_relocatable_relocs
- instead of Default_scan_relocatable_relocs.
- * target-reloc.h (relocate_for_relocatable): Let target handle
- relocation strategy Relocatable_relocs::RELOC_SPECIAL.
- * target.h (Sized_target::relocate_special_relocatable): New method.
- 2010-05-25 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * timer.cc: Only #include <sys/times.h> if HAVE_TIMES is defined.
- 2010-05-23 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_input_section::do_output_offset): Use convert_types
- instead of a cast.
- (Target_arm::apply_cortex_a8_workaround): Rewrite a conditional branch
- with a direct branch, not a conditional branch, to a stub.
- * merge.cc (Output_merge_base::record_input_section): New method
- defintion.
- (Output_merge_data::do_add_input_section): Record input section if
- keeps-input-sections flag is set.
- (Output_merge_string::do_add_input_section): Ditto.
- * merge.h (Output_merge_base::Output_merge_base): Initialize new data
- members KEEPS_INPUT_SECTIONS_, FIRST_RELOBJ_, FIRST_SHNDX_ and
- INPUT_SECTIONS_.
- (Output_merge_base::keeps_input_sections,
- Output_merge_base::set_keeps_input_sections,
- Output_merge_base::first_relobj, Output_merge_base::first_shndx): New
- method definitions.
- (Output_merge_base::Input_sections): New type declaration.
- (Output_merge_base::input_sections_begin,
- Output_merge_base::input_sections_end,
- Output_merge_base::do_set_keeps_input_sections): New method definitions.
- (Output_merge_base::bool keeps_input_sections_,
- Output_merge_base::first_relobj_, Output_merge_base::first_shndx_,
- Output_merge_base::input_sections_): New data members.
- (Output_merge_data::do_set_keeps_input_sections): New method
- defintion.
- (Output_merge_string::do_set_keeps_input_sections): Ditto.
- * output.cc (Output_section::Input_section::relobj): Move method
- defintion from class declaration to here and handle merge sections.
- (Output_section::Input_section::shndx): Ditto.
- (Output_section::Output_section): Remove initializations of removed
- data members and initialize new data member LOOKUP_MAPS_.
- (Output_section::add_input_section): Set keeps-input-sections flag
- for a newly created merge output section as appropriate. Adjust code
- to use Output_section_lookup_maps class.
- (Output_section::add_relaxed_input_section): Adjst code for lookup
- maps code refactoring.
- (Output_section::add_merge_input_section): Add a new parameter
- KEEPS_INPUT_SECTION. Adjust code to use Output_section_lookup_maps
- class. If adding input section to a newly created merge output
- section fails, remove the new merge section.
- (Output_section::convert_input_sections_in_list_to_relaxed_input_sections):
- Adjust code for use of the Output_section_lookup_maps class.
- (Output_section::find_merge_section): Ditto.
- (Output_section::build_lookup_maps): New method defintion.
- (Output_section::find_relaxed_input_section): Adjust code to use
- Output_section_lookup_maps class.
- (Output_section::get_input_sections): Export merge sections. Adjust
- code to use Output_section_lookup_maps class.
- (Output_section:::add_script_input_section): Adjust code to use
- Output_section_lookup_maps class. Update lookup maps for merge
- sections also.
- (Output_section::discard_states): Use Output_section_lookup_maps.
- (Output_section::restore_states): Same.
- * output.h (Merge_section_properties): Move class defintion out of
- Output_section.
- (Output_section_lookup_maps): New class.
- (Output_section::Input_section::is_merge_section): New method
- defintion.
- (Output_section::Input_section::relobj): Move defintion out of class
- defintion. Declare method only.
- (Output_section::Input_section::shndx): Ditto.
- (Output_section::Input_section::output_merge_base): New method defintion.
- (Output_section::Input_section::u2_.pomb): New union field.
- (Output_section::Merge_section_by_properties_map,
- Output_section::Output_section_data_by_input_section_map,
- Output_section::Ouptut_relaxed_input_section_by_input_section_map):
- Remove types.
- (Output_section::add_merge_input_section): Add new parameter
- KEEPS_INPUT_SECTIONS.
- (Output_section::build_lookup_maps): New method declaration.
- (Output_section::merge_section_map_,
- Output_section::merge_section_by_properties_map_,
- Output_section::relaxed_input_section_map_,
- Output_section::is_relaxed_input_section_map_valid_): Remove data
- members.
- (Output_section::lookup_maps_): New data member.
- 2010-05-21 Doug Kwan <dougkwan@google.com>
- PR gold/11619
- * arm.cc (Arm_input_section::do_output_offset): Add a cast to
- avoid a compilation error.
- 2010-05-19 Rafael Espindola <espindola@google.com>
- * script-sections.cc (Output_section_definition::allocate_to_segment):
- Update the phdrs_list even when the output section is NULL.
- * testsuite/Makefile.am: Add test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/script_test_9.cc: New.
- * testsuite/script_test_9.sh: New.
- * testsuite/script_test_9.t: New.
- 2010-05-19 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_input_section::original_size): New method.
- (Arm_input_section::do_addralign): Add a cast.
- (Arm_input_section::do_output_offset): Remove static cast.
- (Arm_input_section::original_addralign,
- Arm_input_section::original_size_): Change type to uint32_t.
- (Arm_input_section::init): Add safe casts for section alignment
- and size.
- (Arm_input_section::set_final_data_size): Do not set address and
- offset of stub table.
- (Arm_output_section::fix_exidx_coverage): Change use of of
- Output_section::Simple_input_section to that of
- Output_section::Input_section.
- (Target_arm::do_relax): Set addresses and file offsets of Stub_tables
- except for the first pass.
- * output.cc (Output_section::get_input_sections): Change type of
- input_sections to std::list<Input_section>.
- (Output_section::add_script_input_section): Rename from
- Output_section::add_simple_input_section. Change type of SIS
- parameter from Simple_input_section to Input_section.
- * output.h (Output_section::Simple_input_section): Remove class.
- (Output_section::Input_section): Change class visibility to public.
- (Output_section::Input_section::addralign): Use stored alignments
- for special input sections if set.
- (Output_section::Input_section::set_addralign): New method.
- (Output_section::get_input_sections): Change parameter type from
- list of Simple_input_section to list of Input_section.
- (Output_section::add_script_input_section): Rename from
- Output_section::add_simple_input_section. Change first parameter's
- type from Simple_input_section to Input_section and remove the
- second and third parameters.
- * script-sections.cc (Input_section::Input_section_list): Change
- type to list of Output_section::Input_section/
- (Input_section_info::Input_section_info): Change parameter type of
- INPUT_SECTION to Output_section::Input_section.
- (Input_section_info::input_section): Change return type.
- (Input_section_info::input_section_): Change type to
- Output_section::Input_section.
- (Output_section_element_input::set_section_addresses): Adjust code
- to use Output_section::Input_section instead of
- Output_section::Simple_input_section. Adjust code for renaming
- of Output_section::add_simple_input_section.
- (Orphan_output_section::set_section_addresses): Ditto.
- 2010-05-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * gold.h (Unordered_multimap, Unordered_map): Fix defines for
- when neither HAVE_TR1_UNORDERED_MAP nor HAVE_EXT_HASH_MAP are set.
- 2010-05-18 Rafael Espindola <espindola@google.com>
- * options.cc (General_options::finalize): Handle -nostdlib.
- * options.h (nostdlib): New option.
- * script.cc (script_add_search_dir): Handle -nostdlib.
- 2010-05-12 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_finalize_sections): Create an empty
- attributes section only if there no attributes section after merging.
- (Target_arm::merge_object_attributes): Move value of
- Tag_MPextension_use_legacy to that of Tag_MPextension_use.
- Handle Tag_DIV_use and Tag_MPextension_use_legacy.
- * testsuite/Makefile.am (check_SCRIPTS): Add arm_attr_merge.sh
- (check_DATA): Add arm_attr_merge_6.stdout, arm_attr_merge_6r_stdout
- and arm_attr_merge_7.stdout.
- (arm_attr_merge_6.stdout, arm_attr_merge_6 arm_attr_merge_6a.o
- arm_attr_merge_6b.o, arm_attr_merge_6r.stdout, arm_attr_merge_6r,
- arm_attr_merge_7.stdout, arm_attr_merge_7, arm_attr_merge_7a.o,
- arm_attr_merge_7b.o): New rules.
- (MOSTLYCLEANFILES): Add arm_attr_merge_6, arm_attr_merge_6r and
- arm_attr_merge_7
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_attr_merge.sh: New file.
- * testsuite/arm_attr_merge_[67][ab].s: Same.
- 2010-05-05 Nick Clifton <nickc@redhat.com>
- * po/es.po: Updated Spanish translation.
- 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
- * Makefile.am (install-exec-local): Properly install gold as
- default cross linker.
- * Makefile.in: Regenerated.
- 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
- Nick Clifton <nickc@redhat.com>
- * configure.ac (install_as_default): Define and set to false
- unless --enable-gold or --enable-gold=both/gold has been
- specified.
- * configure: Regenerate.
- * Makefile.am (install-exec-local): Install the executable as
- 'ld.gold'. If install_as_default is true then also install it as
- 'ld'.
- * Makefile.in: Regenerated.
- 2010-04-24 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::layout_reloc): In relocatable link don't
- combine reloc sections for grouped sections.
- 2010-04-23 Sriraman Tallam <tmsriram@google.com>
- * gc.h (gc_process_relocs): Pass information on relocs pointing to
- sections that are not ordinary to icf.
- * icf.cc (get_section_contents): Handle relocation pointing to section
- with no object or shndx information.
- * testsuite/Makefile.am: Remove icf_virtual_function_folding_test.sh
- * testsuite/Makefile.in: Regenerate.
- * testsuite/icf_virtual_function_folding_test.cc: Remove printf.
- * testsuite/icf_virtual_function_folding_test.sh: Delete file.
- 2010-04-22 Ian Lance Taylor <iant@google.com>
- * expression.cc (Expression::Expression_eval_info): Add
- result_alignment_pointer field.
- (Expression::eval_with_dot): Add result_alignment_pointer
- parameter. Change all callers.
- (Expression::eval_maybe_dot): Likewise.
- (class Binary_expression): Add alignment_pointer parameter to
- left_value and right_value. Change all callers.
- (BINARY_EXPRESSION): Set result alignment.
- (class Trinary_expression): Add alignment_pointer parameter to
- arg2_value and arg3_value. Change all callers.
- (Trinary_cond::value): Set result alignment.
- (Max_expression::value, Min_expression::value): Likewise.
- (Align_expression::value): Likewise.
- * script-sections.cc (class Sections_element): Add dot_alignment
- parameter to set_section_addresses virtual function. Update
- instantiations.
- (class Output_section_element): Likewise.
- (Script_sections::create_segments): Add dot_alignment parameter.
- Change all callers.
- (Script_sections::create_segments_from_phdrs_clause): Likewise.
- (Script_sections::set_phdrs_clause_addresses): Likewise.
- * script-sections.h: Update declarations.
- * script.h: Update declarations.
- * output.h (Output_segment::set_minimum_p_align): Don't decrease
- min_p_align.
- * testsuite/script_test_3.t: Set large alignment.
- * testsuite/script_test_3.sh: Make sure that at least one LOAD
- segment has expected alignment.
- 2010-04-22 Nick Clifton <nickc@redhat.com>
- * po/gold.pot: Updated by the Translation project.
- * po/vi.po: Updated Vietnamese translation.
- 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (check_PROGRAMS): Add
- icf_virtual_function_folding_test.
- * testsuite/Makefile.in: Regenerated.
- 2010-04-15 Andrew Haley <aph@redhat.com>
- * options.h (merge_exidx_entries): New option.
- * arm.cc (class Arm_exidx_fixup): Add new arg, merge_exidx_entries.
- (class Arm_exidx_fixup::merge_exidx_entries_): New member.
- (Output_section::fix_exidx_coverage): Add new arg, merge_exidx_entries.
- (Target_arm::merge_exidx_entries): New function.
- (process_exidx_entry): Don't merge if merge_exidx_entries_ is false.
- (Arm_output_section::fix_exidx_coverage): Pass merge_exidx_entries
- to Arm_exidx_fixup constructor.
- Add new arg, merge_exidx_entries.
- (Target_arm::fix_exidx_coverage): pass merge_exidx_entries to
- Arm_output_section::fix_exidx_coverage.
- 2010-04-18 Sriraman Tallam <tmsriram@google.com>
- * icf.cc (get_section_contents): Check for preemptible functions.
- Ignore addend when appropriate.
- * symtab.cc (should_add_dynsym_entry): Add new parameter. Check for
- section folded.
- (add_from_relobj): Check for section folded.
- (set_dynsym_indexes): Fix call to should_add_dynsym_entry.
- * symtab.h (should_add_dynsym_entry): Add new parameter.
- * target-reloc.h (scan_relocs): Check for section folded.
- * x86_64.cc (Target_x86_64::Scan::possible_function_pointer_reloc):
- Check reloc types for function pointers in shared objects.
- * testsuite/Makefile.am (icf_virtual_function_folding_test): New test
- case.
- (icf_preemptible_functions_test): New test case.
- (icf_string_merge_test): New test case.
- * testsuite.Makefile.in: Regenerate.
- * testsuite/icf_safe_so_test.sh: Change to not fold foo_glob and
- bar_glob. Refactor code.
- * testsuite/icf_preemptible_functions_test.cc: New file.
- * testsuite/icf_preemptible_functions_test.sh: New file.
- * testsuite/icf_string_merge_test.cc: New file.
- * testsuite/icf_string_merge_test.sh: New file.
- * testsuite/icf_virtual_function_folding_test.cc: New file.
- * testsuite/icf_virtual_function_folding_test.sh: New file.
- 2010-04-14 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_output_section::fix_exidx_coverage): Mark object
- for local symbol recounting if we remove a section due to ICF.
- * gold.cc (queue_middle_gc_tasks): Create a dummy blocker if
- there are no regular objects in input.
- 2010-04-13 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_input_section::set_final_data_size): Compute
- accurate final data size instead of using current data size.
- 2010-04-09 Doug Kwan <dougkwan@google.com>
- * layout.cc (Layout::choose_output_section): Handle script section
- types.
- (Layout::make_output_section_for_script): Add section type parameter.
- Handle script section types.
- * layout.h (Layout::make_output_section_for_script): Add section
- type parameter.
- * output.cc (Output_section::Output_section): Initialize data member
- is_noload_.
- (Output_section::do_reset_address_and_file_offset): Do not set address
- to 0 if section is a NOLOAD section.
- * output.h (Output_section::is_noload): New method.
- (Output_section::set_is_noload): Ditto.
- (Output_section::is_noload_): New data member.
- * script-c.h (Script_section_type): New enum type.
- (struct Parser_output_section_header): Add new file section_type.
- * script-sections.cc (Sections_element::output_section_name): Add
- parameter for returning script section type.
- (Output_section_definition::output_section_name): Ditto.
- (Output_section_definition::section_type)P; New method.
- (Output_section_definiton::script_section_type_name): Ditto.
- (Output_section_definition::script_section_type_): New data member.
- (Output_section_definition::Output_section_definition): Initialize
- data member Output_section_definition::script_section_type_.
- (Output_section_definition::create_sections): Pass script section type
- to Layout::make_output_section_for_script.
- (Output_section_definition::output_section_name): Return script
- section type to caller.
- (Output_section_definition::set_section_address): Do not advance
- dot value and load address if section type is NOLOAD. Set address
- of NOLOAD sections regardless of section flags.
- (Output_section_definition::print): Print section type if it is
- not SCRIPT_SECTION_TYPE_NONE.
- (Output_section_definition::section_type): New method.
- (Output_section_definition::script_section_type_name): Ditto.
- (Script_sections::output_section_name): Add new parameter
- PSECTION_TYPE for returning script section type. Pass it to
- section elements. Handle discard sections.
- (Sort_output_sections::operator()): Handle NOLOAD sections.
- * script-sections.h (Script_sections::Section_type): New enum type.
- (Script_sections::output_section_name): Add a new parameter for
- returning script section type.
- * script.cc (script_keyword_parsecodes): Add keywords COPY, DSECT,
- INFO and NOLOAD.
- * yyscript.y (union): Add new field SECTION_TYPE.
- (COPY, DSECT, INFO, NOLOAD): New tokens.
- (opt_address_and_section_type): Change type to output_section_header.
- (section_type): New non-terminal
- (section_header): Handle section type.
- (opt_address_and_section_type): Return section type value.
- 2010-04-09 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/plugin_common_test_1.c (foo): Add prototype.
- * testsuite/plugin_common_test_2.c (foo): Likewise.
- 2010-04-08 Doug Kwan <dougkwan@google.com>
- * merge.cc (Output_merge_data::set_final_data_size): Handle empty
- Output_merge_data.
- * output.cc (Output_section::add_merge_input_section): Simplify
- code and return status of Output_merge_base::add_input_section.
- Update merge section map only if Output_merge_base::add_input_section
- returns true.
- 2010-04-07 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::scan_section_for_cortex_a8_erratum): Warn
- if section is marked as containing instructions but has no mapping
- symbols.
- (Arm_relobj::do_count_local_symbols): Call adjust_sym_shndx to get
- correct section index.
- (Arm_relobj::find_linked_text_section): Ditto.
- 2010-04-07 Cary Coutant <ccoutant@google.com>
- * archive.cc (include_member): Destroy Read_symbols_data object before
- releasing file.
- * object.cc (Read_symbols_data::~Read_symbols_data) New destructor.
- * object.h (Read_symbols_data::Read_symbols_data) New constructor.
- (Read_symbols_data::~Read_symbols_data) New destructor.
- (Section_relocs::Section_relocs) New constructor.
- (Section_relocs::~Section_relocs) New destructor.
- (Read_relocs_data::Read_relocs_data) New constructor.
- (Read_relocs_data::~Read_relocs_data) New destructor.
- * testsuite/binary_unittest.cc (Sized_binary_test): Set sd member
- pointers to NULL after deleting.
- 2010-04-07 Doug Kwan <dougkwan@google.com>
- * arm.cc: Replace "endianity" with "endianness" in comments.
- (Arm_exidx_cantunwind): Ditto.
- (Arm_relobj::Arm_relobj): Initialize merge_flags_and_attribures.
- (Arm_relobj::merge_flags_and_attributes): New method.
- (Arm_relobj::merge_flags_and_attributes_): New data member.
- (Arm_exidx_cantunwind::do_fixed_endian_write): Fix formatting.
- (Arm_relobj::scan_sections_for_stubs): Ditto.
- (Arm_relobj::do_read_symbols): Check to see if we really want to
- merge processor-specific flags and attributes. Exit early if
- an object is empty except for section names and the undefined symbol.
- (Target_arm::do_finalize_sections): Move check for ELF format to
- Arm_relobj::do_read_symbols. Merge processor specific flags and
- attributes from a regular object only when we have determined that
- it is aapropriate. Do not create an .ARM.attributes section in
- output if there is no regular input object.
- (Target_arm::merge_processor_specific_flags): Check
- --warn-mismatch before printing any error.
- (Target_arm::merge_object_attributes): Ditto.
- * gold.cc (queue_middle_tasks): Handle the case in which there is
- no regular object in input.
- * options.cc (General_options::parse_EB): New method.
- (General_options::parse_EL): Same.
- (General_options::General_options): Initialize endianness_.
- * options.h (-EB, -EL, -no-pipeline-knowledge, -p, --warn-mismatch):
- New options.
- (General_options::Endianness): New enum.
- (General_options::endianness): New method.
- (General_options::endianness_): New data member.
- * parameters.cc (Parameters::set_options): Check target endianness.
- (Parameters::set_target_once): Ditto.
- (Parameters::check_target_endianness): New method.
- (parameters_force_valid_target): If either -EL or -EB is specified,
- use it to define endianness of default target.
- * parameters.h (Parameters::check_target_endianness): New method
- declaration.
- * target.h (class Target): Change "endianity" to "endianness"
- in comments.
- 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * configure.ac (AM_INIT_AUTOMAKE): Add option no-dist.
- * configure: Regenerate.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2010-04-06 Cary Coutant <ccoutant@google.com>
- gcc PR lto/42757
- * plugin.cc (Pluginobj::get_symbol_resolution_info): Check for
- prevailing definitions of common symbols.
- * testsuite/plugin_test_6.sh: New test case.
- * testsuite/plugin_common_test_1.c: New test case.
- * testsuite/plugin_common_test_2.c: New test case.
- * testsuite/Makefile.am (plugin_test_6): New test case.
- * testsuite/Makefile.in: Regenerate.
- 2010-04-06 Nick Clifton <nickc@redhat.com>
- * po/vi.po: New Vietnamese translation.
- 2010-03-30 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::using_thumb_only): Handle v6-M
- 2010-03-25 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Arm_exidx_fixup::update_offset_map): Rearrange code
- to avoid a conversion warning on a 32-bit host.
- 2010-03-24 Ian Lance Taylor <iant@google.com>
- * testsuite/script_test_3.t: Add a TLS segment.
- * testsuite/Makefile.am (check_PROGRAMS): Add
- tls_phdrs_script_test.
- (tls_phdrs_script_test_SOURCES): Define.
- (tls_phdrs_script_test_DEPENDENCIES): Define.
- (tls_phdrs_script_test_LDFLAGS): Define.
- (tls_phdrs_script_test_LDADD): Define.
- * testsuite/Makefile.in: Rebuild.
- 2010-03-23 Cary Coutant <ccoutant@google.com>
- * fileread.cc (find_or_make_view): Fix comment.
- 2010-03-23 Ian Lance Taylor <iant@google.com>
- * script-sections.cc (class Orphan_section_placement): Define
- PLACE_TLS and PLACE_TLS_BSS.
- (Orphan_section_placement::Orphan_section_placement): Initialize
- new places.
- (Orphan_section_placement::find_place): Handle SHF_TLS sections.
- * testsuite/Makefile.am (check_PROGRAMS): Add tls_script_test.
- (tls_script_test_SOURCES): Define.
- (tls_script_test_DEPENDENCIES): Define.
- (tls_script_test_LDFLAGS): Define.
- (tls_script_test_LDADD): Define.
- * testsuite/Makefile.in: Rebuild.
- 2010-03-22 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::abs8,
- Arm_relocate_functions::abs16): Use correct check for overflow
- specified in the ARM ELF specs.
- (Arm_relocate_functions): thumb_branch_common. Handle bit 1 of branch
- target of a BLX instruction specially.
- (Reloc_stub::stub_type_for_reloc): Ditto.
- (Relocate::relocate): Use symbolic names instead of numeric relocation
- codes to report error.
- (Target_arm::do_relox): Reduce default stub-group size for Cortex-A8
- workaround.
- * testsuite/Makefile.am (check_DATA): add thumb_blx_in_range.stdout,
- thumb_blx_out_of_range.stdout, thumb2_blx_in_range.stdout and
- thumb2_blx_out_of_range.stdout
- (thumb_bl_out_of_range, thumb_bl_out_of_range.o,
- thumb2_bl_out_of_range, thumb2_bl_out_of_range.o): Fix dependenices.
- (thumb_blx_in_range.stdout, thumb_blx_in_range, thumb_blx_in_range.o,
- thumb_blx_out_of_range.stdout, thumb_blx_out_of_range,
- thumb_blx_out_of_range.o, thumb2_blx_in_range.stdout,
- thumb2_blx_in_range, thumb2_blx_in_range.o,
- thumb2_blx_out_of_range.stdout, thumb2_blx_out_of_range,
- thumb2_blx_out_of_range.o): New rules.
- (MOSTLYCLEANFILES): Add thumb_blx_in_range, thumb_blx_out_of_range,
- thumb2_blx_in_range and thumb2_blx_out_of_range.
- * testsuite/Makefile.in: Regenerate.
- * arm_branch_in_range.sh: Add tests for THUMB BLX.
- * testsuite/thumb_blx_in_range.s: New file.
- * testsuite/thumb_blx_out_of_range.s: New file.
- 2010-03-22 Rafael Espindola <espindola@google.com>
- * archive.cc (Should_include): Move to archive.h.
- (should_include_member): Make it a member of Archive.
- (Lib_group): New.
- (Add_lib_group_symbols): New.
- * archive.h: Include options.h.
- (Archive_member): Moved from Archive.
- (Should_include): Moved from archive.cc.
- (Lib_group): New.
- (Add_lib_group_symbols): New.
- * dynobj.cc (do_should_include_member): New.
- * dynobj.h (do_should_include_member): New.
- * gold.cc (queue_initial_tasks): Update call to queue.
- * main.cc (main): Print lib group stats.
- * object.cc (do_should_include_member): New.
- * object.h: Include archive.h.
- (Object::should_include_member): New.
- (Object::do_should_include_member): New.
- (Sized_relobj::do_should_include_member): New.
- * options.cc (General_options::parse_start_lib): New.
- (General_options::parse_end_lib): New.
- (Input_arguments::add_file): Handle lib groups.
- (Input_arguments::start_group): Check we are not in a lib.
- (Input_arguments::start_lib): New.
- (Input_arguments::end_lib): New.
- * options.h (General_options): Add start_lib and end_lib.
- (Input_argument::lib_): New.
- (Input_argument::lib): New.
- (Input_argument::is_lib): New.
- (Input_file_lib): New.
- (Input_arguments::in_lib_): New.
- (Input_arguments::in_lib): New.
- (Input_arguments::start_lib): New.
- (Input_arguments::end_lib_): New.
- * plugin.cc (Pluginobj::get_symbol_resolution_info): Mark symbols
- in unused members as preempted.
- (Sized_pluginobj::do_should_include_member): New.
- * plugin.h (Sized_pluginobj::do_should_include_member): New.
- * readsyms.cc (Read_symbols::locks): If we are just reading a member,
- return the blocker.
- (Read_symbols::do_whole_lib_group): New.
- (Read_symbols::do_lib_group): New.
- (Read_symbols::do_read_symbols): Handle lib groups.
- (Read_symbols::get_name): Handle lib groups.
- * readsyms.h (Read_symbols): Add an archive member pointer.
- (Read_symbols::do_whole_lib_group): New.
- (Read_symbols::do_lib_group): New.
- (Read_symbols::member_): New.
- * script.cc (read_input_script): Update call to queue_soon.
- 2010-03-19 Doug Kwan <dougkwan@google.com>
- * arm.cc (Stub_table::Stub_table): Initialize new data members
- Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_.
- (Stub_table::add_reloc_stub): Assign stub offset and update
- Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_.
- (Stub_table::reloc_stubs_size_, Stub_table::reloc_stubs_addralign_):
- New data members.
- (Stub_table::update_data_size_and_addralign): Use
- Stub_table::reloc_stubs_size_ and Stub_table::reloc_stubs_addralign_
- instead of going over all reloc stubs.
- (Stub_table::finalize_stubs): Do not assign reloc stub offsets.
- * stringpool.cc (Stringpool_template::Stringpool_template): Initialize
- Stringpool_template::offset_ to size of Stringpool_char.
- (Stringpool_template::new_key_offset): Remove code to initialize
- Stringpool_template::offset_.
- * stringpool.h (Stringpool_template::set_no_zero_null): Set
- Stringpool_template::offset_ to zero.
- 2010-03-15 Doug Kwan <dougkwan@google.com>
- * stringpool.cc (Stringpool_template::Stringpool_template): Initialize
- offset_.
- (Stringpool_template::new_key_offset): New method.
- (Stringpool_template::add_string): Assign offsets when adding new
- strings.
- (Stringpool_template::set_string_offsets): Do not set string offsets
- when not optimizing.
- * stringpool.h (Chunked_vector::Chunked_vector): Initialize data
- member size_.
- (Chunked_vector::clear): Clear size_.
- (Chunked_vector::reserve): Call reserve method of all Element_vectors.
- (Chunked_vector::size): Return size_.
- (Chunked_vector::push_back): Use size_ to find insert position.
- (Chunked_vector::size_): New data member.
- (Stringpool_template::set_no_zero_null): Assert string set is empty.
- (Stringpool_template::new_key_offset): New method declaration.
- (Stringpool_template::offset_): New data member.
- 2010-03-15 Rafael Espindola <espindola@google.com>
- * readsyms.cc (Read_symbols::do_read_symbols): Update calls to
- Add_symbols' constructor.
- * readsyms.h (Add_symbols): Remove the input_group member.
- 2010-03-10 Ian Lance Taylor <iant@google.com>
- * reloc.cc (Sized_relobj::split_stack_adjust_reltype): Call the
- target to ask whether a reference to a symbol requires a stack
- split.
- * target.h (Target::is_call_to_non_split): New function.
- (Target::do_is_call_to_non_split): Declare virtual function.
- * target.cc: Include "symtab.h".
- (Target::do_is_call_to_non_split): New function.
- * i386.cc (Target_i386::do_is_call_to_non_split): New function.
- 2010-03-10 Cary Coutant <ccoutant@google.com>
- * fileread.cc (File_read::~File_read): Don't delete whole_file_view_.
- (File_read::open[1]): Remove initial mapping of whole_file_view_.
- (File_read::open[2]): Add whole_file_view_ to list of views.
- (File_read::make_view): Remove test of whole_file_view_.
- (File_read::find_or_make_view): Create whole_file_view_ if
- necessary.
- (File_read::clear_views): Replace bool parameter with enum;
- adjust all callers. Don't delete views with permanent data;
- do delete cached views and views from archives if
- --no-keep-files-mapped is set. Set whole_file_view_ to NULL
- if clearing the corresponding view.
- * fileread.h (File_read::Clear_views_mode): New enum.
- (File_read::View::is_permanent_view): New method.
- (File_read::clear_views): Replace bool parameter
- with enum; adjust all callers.
- * options.h (General_options): Change keep_files_mapped option;
- add map_whole_files.
- * readsyms.cc (Add_symbols::run): Delete sd_ object before
- releasing the file.
- * reloc.cc (Scan_relocs::run): Delete rd_ object before releasing
- the file.
- 2010-03-10 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::Scan::local): Accept R_SPARC_WPLT30.
- 2010-03-09 Sriraman Tallam <tmsriram@google.com>
- * icf.cc (get_section_contents): Add '@' marker after processing the
- merge reloc.
- 2010-03-08 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Arm_exidx_fixup::update_offset_map): Fix build breakage
- due to a conversion warning.
- (Arm_relobj::update_output_local_symbol_count): Check for local
- symbol with unset output index.
- 2010-03-05 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add --spare-dynamic-tags.
- * output.cc (Output_data_dynamic::set_final_data_size): Implement
- --spare-dynamic-tags.
- 2010-03-05 Ian Lance Taylor <iant@google.com>
- * incremental.cc: Include "libiberty.h".
- 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
- * dynobj.h (Verdef::Verdef): Add is_info arg, is_info member
- function, is_info_ member.
- * dynobj.cc (Verdef::write): Set VER_FLG_INFO if this->is_info_.
- (Versions::Versions): Update caller.
- (Versions::define_base_version): Likewise.
- (Versions::add_def): Likewise.
- 2010-03-03 Sriraman Tallam <tmsriram@google.com>
- * i386.cc (Target_i386::can_check_for_function_pointers): New function.
- (Scan::possible_function_pointer_reloc): New function.
- (Scan::local_reloc_may_be_function_pointer): Change to call
- possible_function_pointer_reloc.
- (Scan::global_reloc_may_be_function_pointer): Ditto.
- * icf.h (Icf::check_section_for_function_pointers): Change to reject
- relocations in ".data.rel.ro._ZTV" section.
- * testsuite/icf_safe_so_test.sh: Change to pass i386.
- * testsuite/icf_safe_so_test.cc: Ditto.
- * testsuite/icf_safe_test.cc: Ditto.
- * testsuite/icf_safe_test.sh: Ditto.
- 2010-03-03 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- Ian Lance Taylor <iant@google.com>
- * target-reloc.h (relocate_section): Check the symbol table index
- for -1U before setting the local symbol index.
- (scan_relocatable_relocs): If copying the relocation, record that
- the local symbol is required.
- * object.h (Symbol_value::is_output_symtab_index_set): New
- function.
- (Symbol_value::may_be_discarded_from_output_symtab): New
- function.
- (Symbol_value::has_output_symtab_entry): New function.
- (Symbol_value::needs_output_symtab_entry): Remove.
- (Symbol_value::output_symtab_index): Make sure the symbol index is
- set.
- (Symbol_value::set_output_symtab_index): Make sure the symbol
- index is not set. Make sure the new index is valid.
- (Symbol_value::set_must_have_output_symtab_entry): New function.
- (Symbol_value::has_output_dynsym_entry): New function.
- (Symbol_value::set_output_dynsym_index): Make sure the new index
- is valid.
- (Sized_relobj::set_must_have_output_symtab_entry): New function.
- * object.cc (Sized_relobj::do_count_local_symbols): Only discard a
- local symbol if permitted.
- (Sized_relobj::do_finalize_local_symbols): Call
- is_output_symtab_index_set rather than needs_output_symtab_entry.
- (Sized_relobj::write_local_symbols): Call has_output_symtab_entry
- rather than needs_output_symtab_entry. Call
- has_output_dynsym_entry rather than needs_output_dynsym_entry.
- * arm.cc (Arm_relobj::update_output_local_symbol_count): Call
- is_output_symtab_index_set rather than needs_output_symtab_entry.
- * testsuite/discard_locals_relocatable_test.c: New file.
- * testsuite/discard_locals_test.sh: Test -r.
- * testsuite/Makefile.am (check_DATA): Add
- discard_locals_relocatable_test1.syms,
- discard_local_relocatable_test2.syms.
- (MOSTLYCLEANFILES): Likewise. Also add
- discard_locals_relocatable_test1.lout and
- discard_locals_relocatable_test2.out.
- (discard_locals_relocatable_test1.syms): New target.
- (discard_locals_relocatable_test.o): New target.
- (discard_locals_relocatable_test1.out): New target.
- (discard_locals_relocatable_test2.syms): New target.
- (discard_locals_relocatable_test2.out): New target.
- (various): Add missing ../ld-new dependencies.
- * testsuite/Makefile.in: Rebuild.
- 2010-03-03 Nick Clifton <nickc@redhat.com>
- * po/fi.po: New Finnish translation.
- 2010-03-01 Doug Kwan <dougkwan@google.com>
- * layout.cc (Layout::Layout): Force section types of .init_array*,
- .preinit_array* and .fini_array* sections.
- * output.cc (Output_section::Input_section_sort_entry::has_priority):
- Fix check of return value of std::string::find.().
- (Output_section::Input_section_sort_compare::operator()): Remove
- comment about .init_array.
- (Output_section::Input_section_sort_init_fini_compare::operator()):
- New method.
- (Output_section::sort_attached_input_sections): Handle .init_array
- and .fini_array specially.
- * output.h (Output_section::Inut_section_sort_compare): Update
- comment.
- (Output_section::Input_section_sort_init_fini_compare): New struct.
- 2010-02-26 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Relocate::reloc_is_non_pic): Treat
- R_ARM_PREL31 and R_ARM_SBREL31 as position independent.
- * testsuite/debug_msg.sh: Avoid matching source line number for
- use of global variable undef_int.
- 2010-02-26 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::scan_reloc_for_stub): Move code handling
- R_ARM_V4BX to Target_arm::scan_reloc_section_for_stubs.
- (Target_arm::scan_reloc_section_for_stubs): Instead of calling
- scan_reloc_for_stub, do all processing of R_ARM_V4BX here.
- * options.cc (General_options::General_options): Initialize member
- fix_v4bx_.
- * testsuite/Makefile.am (check_SCRIPTS): Add arm_fix_v4bx.sh
- (check_DATA): Add arm_fix_v4bx.stdout, arm_fix_v4bx_interworking.stdout
- and rm_no_fix_v4bx.stdout
- (arm_fix_v4bx.stdout, arm_fix_v4bx, arm_fix_v4bx.o,
- arm_fix_v4bx_interworking.stdout, arm_fix_v4bx_interworking,
- arm_no_fix_v4bx.stdout, arm_no_fix_v4bx): New make rules.
- (MOSTLYCLEANFILES): Add arm_fix_v4bx, arm_fix_v4bx_interworking
- and arm_no_fix_v4bx.
- * Makefile.in: Regenerate.
- * testsuite/arm_fix_v4bx.s: New file.
- * testsuite/arm_fix_v4bx.sh: Ditto.
- 2010-02-24 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::got_section): Make the .got section the first
- non RELRO section in the data segment.
- * testsuite/script_test_5.sh: Fix match patterns to avoid matching
- suffixes of section names.
- 2010-02-24 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_finalize_sections): Skip processor specific
- flags and attributes merging if an input file is a binary file.
- * fileread.cc (Input_file::open): Record format of original file.
- * fileread.h (Input_file::Format): New enum type.
- (Input_file::Input_file): Initialize data member format_.
- (Input_file::format): New method definition.
- (Input_file::format_):: New data member.
- 2010-02-24 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_output_data_got): New class.
- (ARM_TCB_SIZE): New constant
- (Target_arm): Use Arm_output_data_got instead of Output_data_got.
- (Arm_output_section::fix_exidx_coverage): Add a parameter for layout.
- If user uses a script with a SECTIONS clause, issue only a warning
- for a misplaced EXIDX input section. Otherwise, issue an error.
- (Arm_relobj::do_gc_process_relocs): Exit early if we are not doing
- garbage collection.
- (Target_arm::got_mode_index_entry): Handle static linking.
- (Target_arm::Scan::local): Ditto.
- (Target_arm::Scan::global): Ditto.
- (Target_arm::Relocate::relocate_tls): Handle static linking. Fix
- all incorrectly implemented relocations.
- (Target_arm::fix_exidx_coverage): Pass layout to
- Arm_output_section::fix_exidx_coverage.
- * layout.cc (Layout::section_name_mapping): Remove trailing dots
- from ".ARM.exidx." and ".ARM.extab.".
- 2010-02-23 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Target_arm::do_finalize_sections): Create attribute
- section if it does not already exist.
- * attributes.cc (Attributes_section_data::Attributes_section_data):
- Don't crash if size is zero.
- 2010-02-23 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- Ian Lance Taylor <iant@google.com>
- * gold.cc (queue_middle_tasks): If no input files were opened,
- exit.
- * workqueue.h (Task_function::Task_function): Assert that there is
- a blocker.
- 2010-02-22 Doug Kwan <dougkwan@google.com>
- * gold-threads.h (Once::~Once): Explicitly define virtual destructor.
- * icf.cc (get_section_contents): Cast snprintf arguments to long long
- types to avoid warnings due to different uint64_t implementations
- on different hosts.
- 2010-02-21 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::arm_branch_common): Fix bug in
- handling of the maximum backward branch offset.
- (Arm_relocate_functions::thumb_branch_common): Ditto.
- * testsuite/Makefile.am (check_SCRIPTS): Add arm_branch_in_range.sh.
- (check_DATA): Add arm_bl_in_range.stdout, arm_bl_out_of_range.stdout
- thumb_bl_in_range.stdout, thumb_bl_out_of_range.stdout,
- thumb2_bl_in_range.stdout and thumb2_bl_out_of_range.stdout.
- (arm_bl_in_range.stdout, arm_bl_in_range, arm_bl_in_range.o,
- arm_bl_out_of_range.stdout, arm_bl_out_of_range,
- arm_bl_out_of_range.o, thumb_bl_in_range.stdout, thumb_bl_in_range,
- thumb_bl_in_range.o, thumb_bl_out_of_range.stdout,
- thumb_bl_out_of_range thumb_bl_out_of_range.o,
- thumb2_bl_in_range.stdout, thumb2_bl_in_range, thumb2_bl_in_range.o
- thumb2_bl_out_of_range.stdout, thumb2_bl_out_of_range,
- thumb2_bl_out_of_range.o): New rules.
- (MOSTLYCLEANFILES): Add arm_bl_in_range, arm_bl_out_of_range,
- thumb_bl_in_range, thumb_bl_out_of_range, thumb2_bl_in_range and
- thumb2_bl_out_of_range
- * testsuite/Makefile.in: Regenerate.
- * testsuite/arm_bl_in_range.s: New file.
- * testsuite/arm_bl_out_of_range.s: Ditto.
- * testsuite/arm_branch_in_range.sh: Ditto.
- * testsuite/arm_branch_range.t: Ditto.
- * testsuite/thumb2_branch_range.t: Ditto.
- * testsuite/thumb_bl_in_range.s: Ditto.
- * testsuite/thumb_bl_out_of_range.s: Ditto.
- * testsuite/thumb_branch_range.t: Ditto.
- 2010-02-20 Sriraman Tallam <tmsriram@google.com>
- * gc.h (gc_process_relocs): Change vectors to point to the new list.
- Add reloc offset information.
- * icf.cc (get_section_contents): Change iterators to point to the new
- vectors. Add reloc offset information to the contents.
- * icf.h (Icf::Sections_reachable_info): New typedef.
- (Icf::Sections_reachable_list): New typedef.
- (Icf::Offset_info): New typedef.
- (Icf::Reloc_info): New struct typedef.
- (Icf::Reloc_info_list): New typedef.
- (Icf::symbol_reloc_list): Delete method.
- (Icf::addend_reloc_list): Delete method.
- (Icf::section_reloc_list): Delete method.
- (Icf::reloc_info_list): New method.
- (Icf::reloc_info_list_): New member.
- 2010-02-19 Doug Kwan <dougkwan@google.com>
- * arm-reloc.def: Mark R_ARM_TLS_GD32, R_ARM_TLS_LDM32,
- R_ARM_TLS_LDO32, R_ARM_TLS_IE32 and R_ARM_TLS_LE32 are implemented.
- * arm.cc (Arm_relocation_functions): New forward declaration.
- (Target_arm::Target_arm): Initialize new data members
- got_mod_index_offset_ and tls_base_symbol_defined_.
- (Target_arm::Relocate::relocate_tls): New method.
- (Target_arm::optimize_tls_reloc, Target_arm::define_tls_base_symbol,
- Target_arm::got_mod_index_entry, Target_arm::rel_tls_desc_section):
- New methods.
- (Target_arm::Got_type): Add GOT_TYPE_TLS_NOFFSET, GOT_TYPE_OFFSET,
- GOT_TYPE_TLS_PAIR and GOT_TYPE_TLS_DESC.
- (Target_arm::got_mod_index_offset_,
- Target_arm::tls_base_symbol_defined_): New data members.
- (Target_arm::Scan::local, Target::Scan::global,
- Target_arm::Relocate::relocate): Handle 32-bit initial TLS
- relocations.
- 2010-02-18 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::find_linked_text_section): New method.
- (Arm_relobj::make_exidx_input_section): Pass section index of linked
- text section as a parameter becuase some broken tools may not set
- the link in section header.
- (Target_arm::has_got_section): New method.
- (Target_arm::scan_section_for_cortex_a8_stubs): Treat an input section
- without any mapping symbol as data only. Remove warning.
- (Arm_relobj::do_read_synbols): If an EXIDX input section has no
- link in its section header, try to discover the link by inspecting the
- REL31 relocation at the beginning of the section.
- (Target_arm::Scan::check_non_pic): Report name of offending relocation
- in error message.
- (Target_arm::Scan::global): Treat any reference to the symbol
- _GLOBAL_OFFSET_TABLE_ as a GOT access.
- 2010-02-12 Sriraman Tallam <tmsriram@google.com>
- * arm.cc (Scan::local_reloc_may_be_function_pointer): New function.
- (Scan::global_reloc_may_be_function_pointer): New function.
- * sparc.cc (Scan::local_reloc_may_be_function_pointer): New function.
- (Scan::global_reloc_may_be_function_pointer): New function.
- * powerpc.cc (Scan::local_reloc_may_be_function_pointer): New function.
- (Scan::global_reloc_may_be_function_pointer): New function.
- * i386.cc (Scan::local_reloc_may_be_function_pointer): New function.
- (Scan::global_reloc_may_be_function_pointer): New function.
- * x86_64.cc (Scan::local_reloc_may_be_function_pointer): New function.
- (Scan::global_reloc_may_be_function_pointer): New function.
- (Scan::possible_function_pointer_reloc): New function.
- (Target_x86_64::can_check_for_function_pointers): New function.
- * gc.h (gc_process_relocs): Scan relocation types to determine if
- function pointers were taken for targets that support it.
- * icf.cc (Icf::find_identical_sections): Include functions for
- folding in safe ICF whose pointer is not taken.
- * icf.h (Secn_fptr_taken_set): New typedef.
- (fptr_section_id_): New member.
- (section_has_function_pointers): New function.
- (set_section_has_function_pointers): New function.
- (check_section_for_function_pointers): New function.
- * options.h: Fix comment for safe ICF option.
- * target.h (can_check_for_function_pointers): New function.
- * testsuite/Makefile.am: Add icf_safe_so_test test case.
- Modify icf_safe_test for X86-64.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/icf_safe_so_test.cc: New file.
- * testsuite/icf_safe_so_test.sh: New file.
- * testsuite/icf_safe_test.cc (kept_func_3): New function.
- (main): Change to take pointer to function kept_func_3.
- * testsuite/icf_safe_test.sh (arch_specific_safe_fold): Check if safe
- folding is done correctly for X86-64.
- 2010-02-12 David S. Miller <davem@davemloft.net>
- * output.h (Output_reloc<SHT_REL>::Output_reloc): Add
- is_symbolless parameter.
- (Output_reloc<SHT_REL>::is_symbolless): New.
- (Output_reloc<SHT_REL>::is_symbolless_): New.
- (Output_reloc<SHT_REL>::type_): Decrease to 29 bits.
- (Output_reloc<SHT_RELA>::Output_reloc): Add is_symbolless parameter.
- (Output_reloc<SHT_RELA>::is_symbolless): New.
- (Output_data_reloc::add_global): Handle is_symbolless.
- (Output_data_reloc::add_global_relative): Likewise.
- (Output_data_reloc::add_local): Likewise.
- (Output_data_reloc::add_local_relative): Likewise.
- (Output_data_reloc::add_symbolless_global_addend): New.
- (Output_data_reloc::add_symbolless_local_addend): New.
- * output.cc (Output_reloc<SHT_REL>::Output_reloc): Handle
- is_symbolless.
- (Output_reloc::set_needs_dynsym_index): Test ->is_symbolless_
- instead of ->is_relative_
- (Output_reloc::write): Likewise.
- (Output_reloc::get_symbol_index): Return 0 when ->is_symbolless_
- (Output_reloc::write_rel): Simplify.
- * sparc.cc (Target_sparc::Scan::local): Use
- ->add_symbolless_local_addend as needed.
- (Target_sparc::Scan::global): Use ->add_symbolless_global_addend as
- needed. Also, emit appropriate unaligned vs. aligned dynamic reloc
- based upon relocation offset.
- 2010-02-11 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Scan::local): Fix bugs in relocation handling.
- (Target_arm::Scan::global): Ditto. Also remove a comment before the
- beginning of function.
- (Target_arm::Relocate::relocate): Remove error messages for MOVW_ABS
- and MOVT_ABS relocations. Those are non issued in scanning. Fix
- parameter is_32bit in calls to should_apply_static_reloc.
- * testsuite/Makefile.am (check_SCRIPTS): Add arm_abs_global.sh.
- (check_DATA): Add arm_abs_global.stdout.
- (arm_abs_lib.o, libarm_abs.so, arm_abs_global.o, arm_abs_global,
- arm_abs_global.stdout): New rules.
- (MOSTLLYCLEANFILES): Add arm_abs_global
- * Makefile.in: Regenerate.
- * testsuite/arm_abs_global.s: New file.
- * testsuite/arm_abs_global.sh: Ditto.
- * testsuite/arm_abs_lib.s: Ditto.
- 2010-02-11 Ian Lance Taylor <iant@google.com>
- * gold.cc (queue_middle_gc_tasks): Use a separate blocker for each
- Read_relocs task.
- (queue_middle_tasks): Likewise, and also for Scan_relocs. Run
- Allocate_commons_task first.
- * reloc.cc (Read_relocs::run): Pass next_blocker_ down to next
- task, rather than symtab_lock_.
- (Gc_process_relocs::~Gc_process_relocs): New function.
- (Gc_process_relocs::is_runnable): Check this_blocker_.
- (Gc_process_relocs::locks): Use next_blocker_ rather than
- blocker_.
- (Scan_relocs::~Scan_relocs): New function.
- (Scan_relocs::is_runnable): Check this_blocker_ rather than
- symtab_lock_.
- (Scan_relocs::locks): Drop symtab_lock_ and blocker_. Add
- next_blocker_.
- * reloc.h (class Read_relocs): Drop symtab_lock_ and blocker_
- fields. Add this_blocker_ and next_blocker_ fields. Adjust
- constructor accordingly.
- (class Gc_process_relocs): Likewise.
- (class Scan_relocs): Likewise.
- * common.h (class Allocate_commons_task): Remove symtab_lock_
- field, and corresponding constructor parameter.
- * common.cc (Allocate_commons_tasK::is_runnable): Remove use of
- symtab_lock_.
- (Allocate_commons_task::locks): Likewise.
- 2010-02-11 Ian Lance Taylor <iant@google.com>
- * gold-threads.h (class Once): Define.
- (class Initialize_lock): Rewrite as child of Once.
- * gold-threads.cc (class Once_initialize): Define.
- (once_pointer_control): New static variable.
- (once_pointer, once_arg): New static variables.
- (c_run_once): New static function.
- (Once::Once, Once::run_once, Once::internal_run): New functions.
- (class Initialize_lock_once): Remove.
- (initialize_lock_control): Remove.
- (initialize_lock_pointer): Remove.
- (initialize_lock_once): Remove.
- (Initialize_lock::Initialize_lock): Move to gold-threads.h.
- (Initialize_lock::initialize): Rewrite.
- (Initialize_lock::do_run_once): New function.
- * archive.cc (Archive::interpret_header): Only clear name if it is
- not already empty.
- * fileread.cc: Include "gold-threads.h"
- (file_counts_lock): New static variable.
- (file_counts_initialize_lock): Likewise.
- (File_read::release): Only increment counts when using --stats.
- Use a lock around the increment.
- * parameters.cc (class Set_parameters_target_once): Define.
- (set_parameters_target_once): New static variable.
- (Parameters::Parameters): Move here from parameters.h.
- (Parameters::set_target): Rewrite.
- (Parameters::set_target_once): New function.
- (Parameters::clear_target): Move here and rewrite.
- * parameters.h (class Parameters): Update declarations. Add
- set_parameters_target_once_ field.
- (Parameters::Parameters): Move to parameters.cc.
- (Parameters::clear_target): Likewise.
- * readsyms.cc (Read_symbols::do_group): Create a Start_group
- task.
- (Start_group::~Start_group): New function.
- (Start_group::is_runnable): New function.
- (Start_group::locks, Start_group::run): New functions.
- (Finish_group::run): Change saw_undefined to size_t.
- * readsyms.h (class Start_group): Define.
- (class Finish_group): Change saw_undefined_ field to size_t.
- (Finish_group::Finish_group): Remove saw_undefined and
- this_blocker parameters. Change all callers.
- (Finish_group::set_saw_undefined): New function.
- (Finish_group::set_blocker): New function.
- * symtab.h (class Symbol_table): Change saw_undefined to return
- size_t. Change saw_undefined_ field to size_t.
- * target-select.cc (Set_target_once::do_run_once): New function.
- (Target_selector::Target_selector): Initialize set_target_once_
- field. Don't initialize lock_ and initialize_lock_ fields.
- (Target_selector::instantiate_target): Rewrite.
- (Target_selector::set_target): New function.
- * target-select.h (class Set_target_once): Define.
- (class Target_selector): Update declarations. Make
- Set_target_once a friend. Remove lock_ and initialize_lock_
- fields. Add set_target_once_ field.
- 2010-02-10 Ian Lance Taylor <iant@google.com>
- * dirsearch.cc (Dirsearch::initialize): Add all blockers before
- queueing any tasks.
- * gold.cc (queue_middle_gc_tasks): Likewise. Fix final blocker.
- (queue_middle_tasks): Add all blockers before queueing any tasks.
- (queue_final_tasks): Likewise.
- * token.h (Task_token::add_blockers): New function.
- * object.h (Input_objects::number_of_relobjs): New function.
- 2010-02-10 Ian Lance Taylor <iant@google.com>
- * i386.cc (Relocate::relocate_tls): A local symbol is final if not
- shared, not if not position independent.
- * x86_64.cc (Relocate::relocate_tls): Likewise.
- * testsuite/Makefile.am (check_PROGRAMS): Add tls_pie_pic_test.
- (tls_pie_pic_test): New target.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/Makefile.am (check_PROGRAMS): Add tls_pie_test.
- (tls_test_main_pie.o, tls_test_pie.o): New targets.
- (tls_test_file2_pie.o, tls_test_c_pie.o, tls_pie_test): Likewise.
- * testsuite/Makefile.in: Rebuild.
- 2010-02-09 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::Scan::local): Do not emit relocs other than
- R_SPARC_RELATIVE using ->add_local_relative().
- (Target_sparc::Scan::global): Likewise for ->add_global_relative().
- * output.h (Output_data_dynamic::add_section_size): New method
- that takes two Output_data objects.
- (Output_data_dynamic::Dynamic_entry): Create storage for secondary
- entry param. Handle it in initializers.
- * output.cc (Output_data_dynamic::Dynamic_entry::write): For
- DYNAMIC_SECTION_SIZE, add in second object size if non-NULL.
- * layout.h (Layout::add_target_dynamic_tags): Add dynrel_includes_plt
- arg.
- * layout.cc (Layout::add_target_dynamic_tags): If dynrel_includes_plt,
- and .rela.plt exists, set DT_REL{,A}SZ to sum of .rela.dyn and .rela.plt
- * arm.cc (Target_arm::do_finalize_sections): Update to pass false
- for dynrel_includes_plt.
- * i386.cc (Target_i386::do_finalize_sections): Likewise.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
- * sparc.cc (Target_sparc::make_plt_entry): Force .rela.dyn to be output
- before .rela.plt
- (Target_sparc::do_finalize_sections): Update to pass true for
- dynrel_includes_plt.
- * powerpc.cc (Target_powerpc::make_plt_entry): Force .rela.dyn to be
- output before .rela.plt
- (Target_powerpc::do_finalize_sections): Update to pass true for
- dynrel_includes_plt when 32-bit.
- 2010-02-08 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::simple_input_section_output_address): New
- method.
- (Arm_relobj::section_needs_cortex_a8_stub_scanning,
- Arm_relobj::scan_section_for_cortex_a8_stubs,
- Arm_relobj::do_relocation_section): Instead of calling
- Output_section::output_address, use faster
- Arm_relobj::simple_input_section_output_address.
- 2010-02-08 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::Relocate::relocate): If relocation offset is
- unaligned for R_SPARC_16, R_SPARC_32, or R_SPARC_64, use the unaligned
- relocation helper function.
- * sparc.cc (Target_sparc::Scan::local): Handle R_SPARC_GOTDATA_OP*
- just like R_SPARC_GOT{10,13,22}.
- (Target_sparc::Scan::local): Likewise.
- (Target_sparc::Relocate:relocate): Likewise.
- 2010-02-06 Ian Lance Taylor <iant@google.com>
- * configure.ac: Rewrite targetobjs duplicate removal code to use
- only shell constructs.
- * configure: Rebuild.
- 2010-02-05 Doug Kwan <dougkwan@google.com>
- PR 11247
- * arm.cc (Arm_relobj::section_is_scannable): New method.
- (Arm_relobj::section_needs_reloc_stub_scanning): Use it.
- (Arm_relobj::section_needs_cortex_a8_stub_scanning): Same.
- 2010-02-04 Doug Kwan <dougkwan@google.com>
- PR 11247
- * arm-reloc-property.cc (cstdio): Include.
- * configure.ac (targetobjs): Remove duplicates.
- * configure: Regenerate.
- * resolve.cc (Symbol_table::resolve): Explicit instantiate both
- big and little endian version for a given address size.
- 2010-02-03 Doug Kwan <dougkwan@google.com>
- * arm-reloc-property.cc
- (Arm_reloc_property_table::reloc_name_in_error_message): New method
- definition.
- * arm-reloc-property.h
- (Arm_reloc_property_table::get_implemented_static_reloc_property):
- New method definition.
- (Arm_reloc_property_table::reloc_name_in_error_message): New method
- declaration.
- * arm-reloc.def (THM_MOVT_ABS, THM_MOVT_PREL, THM_MOVT_BREL): Change
- overflow to N.
- (GOT_PREL): Change implemented to Y.
- * arm.cc (Target_arm::reloc_uses_thumb_bit): Remove method.
- (Target_arm::Relocate::reloc_needs_sym_origin): Remove method.
- (Arm_relocate_functions::movw_abs_nc): Remove method.
- (Arm_relocate_functions::movt_abs): Ditto.
- (Arm_relocate_functions::thm_movw_abs_nc): Ditto.
- (Arm_relocate_functions::thm_movt_abs): Ditto.
- (Arm_relocate_functions::movw_rel_nc): Ditto.
- (Arm_relocate_functions::movw_rel): Ditto.
- (Arm_relocate_functions::movt_rel): Ditto.
- (Arm_relocate_functions:thm_movw_rel_nc): Ditto.
- (Arm_relocate_functions:thm_movw_rel): Ditto.
- (Arm_relocate_functions:thm_movt_rel): Ditto.
- (Arm_relocate_functions::movw, Arm_relocate_functions::movt,
- (Arm_relocate_functions::thm_movw, Arm_relocate_functions::thm_movt):
- New method definitions.
- (Arm_relocation_functions::arm_grp_alu): Add assertion for group index.
- (Arm_relocation_functions::arm_grp_ldr): Ditto.
- (Arm_relocation_functions::arm_grp_ldrs): Ditto.
- (Arm_relocation_functions::arm_grp_ldc): Ditto.
- (Target_arm::Relocate::relocate): Check for non-static or
- unimplemented relocation code and exit early. Change calls to
- Target_arm::reloc_uses_thumb_bit and
- Target_arm::Reloc::reloc_needs_sym_origin to use relocation property
- instead. Refactor code to handle similar relocations to increase
- code sharing. Remove check for unsupported relocation code in switch
- statement.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Use
- relocation property table to find out size. Change error message to
- print out the name of a relocation code instead of the numeric value.
- (Target_arm::scan_reloc_for_stub): Use relocation property table
- instead of calling Target_arm::reloc_uses_thumb_bit().
- 2010-02-02 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::relocate_section): Do view adjustment for all
- types of relaxed input section.
- 2010-02-02 Doug Kwan <dougkwan@google.com>
- * Makefile.am (HFILES): Add arm-reloc-property.h.
- (DEFFILES): New.
- (TARGETSOURCES): Add arm-reloc-property.cc
- (ALL_TARGETOBJS): Add arm-reloc-property.$(OBJEXT)
- (libgold_a_SOURCES): $(DEFFILES)
- * Makefile.in: Regenerate.
- * arm-reloc-property.cc: New file.
- * arm-reloc-property.h: New file.
- * arm-reloc.def: New file.
- * arm.cc: Update comments.
- (arm-reloc-property.h): New included header.
- (arm_reloc_property_table): New global variable.
- (Target_arm::do_select_as_default_target): New method definition.
- * configure.tgt (armeb*-*-*,armbe*-*-*,arm*-*-*): Add
- arm-reloc-property to targ_extra_obj.
- * parameters.cc (set_parameters_target): Call
- Target::select_as_default_target().
- * target.h (Target::select_as_default_target): New method definition.
- (Target::do_select_as_default_target): Same.
- 2010-02-01 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_fixup::Arm_exidx_fixup): Initialize
- first_output_text_section_.
- (Arm_exidx_fixup::first_output_text_section): New method definition.
- (Arm_exidx_fixup::first_output_text_section_): New data member.
- (Arm_exidx_fixup::process_exidx_section): Record the first text
- output section seen.
- (Arm_output_section::fix_exidx_coverage): Set correct linked section
- and entsize in output section header.
- 2010-01-29 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * gold/arm.cc: Added support for the ARM relocations: R_ARM_THM_PC8,
- R_ARM_THM_PC12, R_ARM_THM_ALU_PREL_11_0.
- (Arm_relocate_functions::thm_alu11): New Method.
- (Arm_relocate_functions::thm_pc8): New Method.
- (Arm_relocate_functions::thm_pc12): New Method.
- (Target_arm::Scan::local): Handle the relocations.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm:Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
- 2010-01-29 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Scan::global): General PLTs for the same set
- of relocation types as ld.
- 2010-01-29 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::arm_branch_common) Change visibility
- to public.
- (Arm_relocate_functions::thumb_branch_common): Ditto.
- (Arm_relocate_functions::thm_call, Arm_relocate_functions::thm_jump24,
- Arm_relocate_functions::thm_xpc22, Arm_relocate_functions::plt32,
- Arm_relocate_functions::xpc25, Arm_relocate_functions::call,
- Arm_relocate_functions::jump24): Remove.
- (Target_arm::Relocate::relocate): Adjust code to call
- Arm_relocation_functions::arm_branch_common and
- Arm_relocation_functions::thumb_branch_common instead of their removed
- wrappers. Merge switch-cases together to reduce source code size.
- 2010-01-29 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::Arm_relobj): Initialize new data member
- output_local_symbol_count_needs_update_.
- (Arm_relobj::output_local_symbol_count_needs_update,
- Arm_relobj::set_output_local_symbol_count_needs_update,
- Arm_relobj::update_output_local_symbol_count): New methods.
- (Arm_relobj::output_local_symbol_count_needs_update_): New data
- member.
- (Arm_exidx_cantunwind::do_fixed_endian_write): Write address
- of pointed function as in a R_ARM_PREL31 relocation.
- (Arm_output_section<big_endian>::fix_exidx_coverage): Mark objects
- for output local symbol count updating.
- (Target_arm::do_relax): Update output local symbol counts in objects
- if necessary.
- * object.h (Sized_relobj::set_output_local_symbol_count): New method.
- 2010-01-29 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc: Added support for the ARM relocations:
- R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL, R_ARM_MOVW_BREL,
- R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL.
- (Arm_relocate_functions::movw_rel_nc): Renamed (was
- movw_prel_nc).
- (Arm_relocate_functions::movw_rel): New method.
- (Arm_relocate_functions::movt_rel): Renamed (was movt_prel).
- (Arm_relocate_functions::thm_movw_rel_nc): Renamed (was
- thm_movw_prel_nc).
- (Arm_relocate_functions::thm_movw_rel): New method.
- (Arm_relocate_functions::thm_movt_rel): Renamed (was
- thm_movt_prel).
- (Target_arm::Scan::local): Handle MOVW_BREL/MOVT_BREL
- relocations.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- 2010-01-27 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc: Added support for ARM group relocations.
- (Target_arm::reloc_needs_sym_origin): New method.
- (Arm_relocate_functions::calc_grp_kn): New method.
- (Arm_relocate_functions::calc_grp_residual): New method.
- (Arm_relocate_functions::calc_grp_gn): New method.
- (Arm_relocate_functions::arm_grp_alu): New Method.
- (Arm_relocate_functions::arm_grp_ldr): New Method.
- (Arm_relocate_functions::arm_grp_ldrs): New Method.
- (Arm_relocate_functions::arm_grp_ldc): New Method.
- (Target_arm::Scan::local): Handle the ARM group relocations.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- 2010-01-26 Doug Kwan <dougkwan@google.com>
- * arm.cc (set): Include.
- (class Arm_exidx_fixup): Change type of last_input_section_ to const
- pointer type.
- (Arm_output_section::Text_section_list): New type.
- (Arm_output_section::append_text_sections_to_list): New method.
- (Arm_output_section::fix_exidx_coverage): Ditto.
- (Arm_relobj::Arm_relobj): Initialize exidx_section_map_.
- (Arm_relobj::convert_input_section_to_relaxed_section): Use
- Relobj::set_section_offset() instead of
- Sized_relobj::invalidate_section_offset().
- (Arm_relobj::section_needs_reloc_stub_scanning): Add an extra
- parameter for section headers. Ignore relocation sections for
- unallocated sections and EXIDX sections.
- (Target_arm::fix_exidx_coverage): New method.
- (Target_arm::output_section_address_less_than): New type.
- (Arm_exidx_fixup::add_exidx_cantunwind_as_needed): Use index of the
- linked text section instead of the EXIDX section.
- (Arm_output_section::create_stub_group): Add an assertion to check
- that this is not an EXIDX output section.
- (Arm_output_section::append_text_sections_to_list): New method.
- (Arm_output_section::fix_exidx_coverage): Ditto.
- (Arm_relobj::scan_sections_for_stubs): Adjust call to
- Arm_relobj::section_needs_reloc_stub_scanning.
- (Target_arm::do_relax): Fix EXIDX output section coverage in the
- first pass.
- (Target_arm::fix_exidx_coverage): New method.
- * object.h (Relobj::set_output_section): New method.
- (Sized_relobj::invalidate_section_offset): Remove method.
- (Sized_relobj::do_invalidate_section_offset): Remove method.
- (Sized_relobj::do_set_section_offset): Handle offset value -1.
- 2010-01-25 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_merged_section::do_output_offset):
- Fix warning due to signed and unsigned comparison on a 32-bit host.
- 2010-01-22 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_relax): Record an output section for section
- offset adjustment it contains any stub table that has changed.
- * layout.cc (Layout::clean_up_after_relaxation): Adjust section
- offsets in an output section if necessary.
- * output.cc (Output_section::Output_section): Initialize
- section_offsets_need_adjustments_.
- (Output_section::add_input_section_for_script): Renamed to
- Output_section::add_simple_input_section.
- (Output_section::save_states): Add a comment.
- (Output_section::discard_states): New method defintion.
- (Output_section::adjust_section_offsets): Same.
- * output.h (Output_section::add_input_section_for_script): Renamed to
- Output_section::add_simple_input_section.
- (Output_section::discard_states): New method declaration.
- (Output_section::adjust_section_offsets): Same.
- (Output_section::section_offsets_need_adjustment,
- Output_section::set_section_offsets_need_adjustment): New method
- definitions.
- (Output_section::section_offsets_need_adjustment_): New data member.
- * script-sections.cc
- (Output_section_element_input::set_section_address): Adjust code for
- renaming of Output_section::add_input_section_for_script.
- (Orphan_output_section::set_section_address): Same.
- 2010-01-22 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * gold/arm.cc (Target_arm): Updated fix_v4bx method and usage of
- Fix_v4bx enum values .
- * gold/options.h (General_options): New option definitions.
- (General_options::fix_v4bx): New method.
- (General_options::Fix_v4bx): New enum.
- * gold/options.cc (General_options::parse_fix_v4bx): New method.
- (General_options::parse_fix_v4bx_interworking): New method.
- 2010-01-22 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_fixup): New class.
- 2010-01-21 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_cantunwind, Arm_exidx_merged_section): New
- classes.
- (Arm_exidx_section_offset_map): New type.
- 2010-01-21 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_exidx_input_section): New class.
- (Arm_relobj::exidx_input_section_by_link,
- Arm_relobj::exidx_input_section_by_shndx,
- Arm_relobj::make_exidx_input_section): New methods.
- (read_arm_attributes_section): Remove.
- (Arm_relobj::do_read_symbols): Look for ARM.exidx sections and record
- information about them.
- (Arm_dynobj::do_read_symbols): Move code in read_arm_attributes_section
- to here.
- 2010-01-20 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Arm_input_section_map): Change key type from
- Input_section_specifier to Section_id.
- (Target_arm::new_arm_input_section: Adjust code for change of key
- type.
- (Target_arm::find_arm_input_section): Ditto.
- * gc.h (object.h): Include for Section_id nand Section_id_hash.
- (Section_id): Remove.
- (Garbage_collection::Section_id_hash): Remove.
- * icf.h (object.h): Include for Section_id nand Section_id_hash.
- (Section_id): Remove.
- (Icf::Section_id_hash): Remove.
- * object.h (Section_id, Const_section_id, Section_id_hash,
- Const_section_id_hash): New type definitions.
- * output.cc (Output_section::add_relaxed_input_section): Change to
- use Const_section_id instead of Input_section_specifier as key type.
- (Output_section::add_merge_input_section): Ditto.
- (Output_section::build_relaxation_map): Change to use Section_id
- instead of Input_section_specifier as key type.
- (Output_section::convert_input_sections_in_list_to_relaxed_sections):
- Ditto.
- (Output_section::convert_input_sections_to_relaxed_sections): Change
- to use Const_section_id instead of Input_section_specifier as key type.
- (Output_section::find_merge_section): Ditto.
- (Output_section::find_relaxed_input_section): Ditto.
- * output.h (Input_section_specifier): Remove class.
- (Output_section::Output_section_data_by_input_section_map): Change
- key type to Const_section_id.
- (Output_section::Output_relaxed_input_section_by_input_section_map):
- Ditto.
- (Output_section::Relaxation_map): Change key type to Section_id.
- 2010-01-20 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * gold/arm.cc: Added support for R_ARM_V4BX relocation
- (class Arm_v4bx_stub): New class.
- (DEF_STUBS): Updated definition to support v4_veneer_bx.
- (Stub_factory::make_arm_v4bx_stub): New method.
- (Stub_factory::elf32_arm_stub_v4_veneer_bx): New veneer template.
- (Stub_table::empty): Handle v4bx stubs.
- (Stub_table::add_arm_v4bx_stub): New method.
- (Stub_table::find_arm_v4bx_stub): New method.
- (Arm_relocate_functions::v4bx): New method.
- (Target_arm::fix_v4bx): New method.
- (Target_arm::Target_arm): Handle R_ARM_V4BX.
- (Stub_table::relocate_stubs): Likewise.
- (Stub_table::do_write): Likewise.
- (Stub_table::update_data_size_and_addralign): Likewise.
- (Stub_table::finalize_stubs): Likewise.
- (Target_arm::Scan::local): Likewise.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::do_finalize_sections): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- (Target_arm::scan_reloc_for_stub): Likewise.
- (Target_arm::scan_reloc_section_for_stubs): Likewise.
- 2010-01-19 Ian Lance Taylor <iant@google.com>
- * output.cc (Output_section_headers::do_sized_write): Write large
- segment count to sh_info field.
- (Output_file_header::do_sized_write): For large segment count,
- write PN_XNUM to e_phnum field.
- 2010-01-15 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Arm_relocate_functions::thm_jump6): New function.
- (Arm_relocate_functions::thm_jump8): New function.
- (Arm_relocate_functions::thm_jump11): New function.
- (Target_arm::Scan::local): Handle R_ARM_THM_JUMP6, R_ARM_THM_JUMP8,
- R_ARM_THM_JUMP11.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::Relocate::relocate): Likewise.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- 2010-01-14 Doug Kwan <dougkwan@google.com>
- * arm.cc (map, utility): Include headers.
- (Target_arm::apply_cortex_a8_workaround): New method.
- (Arm_relobj::do_relocate_sections): Apply any Cortex-A8 workaround.
- (Target_arm::Scan::local): Handle R_ARM_THM_JUMP24, R_ARM_THM_JUMP19.
- (Target_arm::Scan::global): R_ARM_THM_JUMP19.
- (Target_arm::do_finalize_sections): Set fix_cortex_a8_ according to
- the --[no-]fix-cortex-a8 command line options.
- (Target_arm::Relocate::relocate): Handle R_ARM_JUMP19.
- (Target_arm::relocate_stub): Use addend in instruction template.
- * options.h (DEFINE_bool): Set the user-set flag.
- (General_options): Add --[no-]-fix-cortex options.
- * output.cc (Output_section::convert_input_sections_to_relaxed_sections)
- : Update fast look-up map after conversion.
- 2010-01-14 Sriraman Tallam <tmsriram@google.com>
- * object.cc (Sized_relobj::do_layout): Change to call layout_gnu_stack
- in the first pass of do_layout.
- 2010-01-13 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::section_needs_reloc_stub_scanning,
- Arm_relobj::scan_sections_for_stubs): Rearrange code to avoid an
- apparent compiler problem of not folding static constant integral
- data members of elfcpp::Elf_sizes<32>.
- 2010-01-13 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::section_needs_reloc_stub_scanning,
- Arm_relobj::section_needs_cortex_a8_stub_scanning,
- Arm_relobj::scan_section_for_cortex_a8_erratum,
- Arm_relobj::scan_span_for_cortex_a8_erratum): New methods.
- (Arm_relobj::scan_sections_for_stubs): Move code deciding what
- sections to scan for relocation stubs into a new method
- Arm_relobj::section_needs_reloc_stub_scanning. Handle both
- relocation and Cortex-A8 stub scanning.
- (Target_arm::do_relax): Force stubs to be after stubbed sections
- if fixing the Cortex-A8 erratum. Remove all Cortex-A8 stubs at
- the beginning of a new relaxation pass. Update a comment.
- (Target_arm::scan_span_for_cortex_a8_erratum): New method definition.
- 2010-01-12 Ian Lance Taylor <iant@google.com>
- * target-reloc.h (visibility_error): New inline function.
- (relocate_section): Call visibility_error.
- * testsuite/Makefile.am (check_DATA): Add protected_3.err.
- (MOSTLYCLEANFILES): Likewise.
- (protected_4_pic.o, protected_3.err): New targets.
- * testsuite/protected_4.cc: New file.
- 2010-01-12 Doug Kwan <dougkwan@google.com>
- * arm.cc (Cortex_a8_reloc): New class.
- (Target_arm::Target_arm): Initialize new data members fix_cortex_a8_
- and cortex_a8_relocs_info_.
- (Target_arm::fix_cortex_a8): New method definition.
- (Target_arm::Cortex_a8_relocs_info): New type.
- (Target_arm::fix_cortex_a8_, Target_arm::cortex_a8_relocs_info_):
- New data member declarations.
- (Target_arm::scan_reloc_for_stub): Record information about
- relocations for THUMB branches that might be exempted from the
- Cortex-A8 workaround.
- (Target_arm::do_relax): Clear all Cortex-A8 relocation information
- at the beginning of a relaxation pass.
- 2010-01-12 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::mapping_symbols_info_): New data member.
- (Arm_relobj::Mapping_symbol_position,
- Arm_reloj::Mapping_symbol_position_less,
- Arm_relobj::Mapping_symbols_info): New types.
- (Target_arm::is_mapping_symbol_name): New method definition.
- (Arm_relobj::do_count_local_symbols): Save information about mapping
- symbols.
- 2010-01-11 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relocate_functions::thumb32_branch_offset,
- Arm_relocate_functions::thumb32_branch_upper,
- Arm_relocate_functions::thumb32_branch_lower,
- Arm_relocate_functions::thumb32_cond_branch_offset,
- Arm_relocate_functions::thumb32_cond_branch_upper,
- Arm_relocate_functions::thumb32_cond_branch_lower,
- Arm_relocate_functions::thm_jump19): New methods to handle THUMB
- branch offset encoding.
- (Arm_relocate_functions::thumb_branch_common): Use new branch
- offset encoding methods to avoid code duplication.
- (Stub_template::Stub_template) Handle THUMB16_SPECIAL_TYPE.
- (Stub_addend_reader::operator()): Use new branch encoding method
- to avoid code duplication.
- 2010-01-11 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::do_gc_process_relocs): New method.
- (Target_arm::do_finalize_sections): Define special EXIDX section
- symbols only if referenced.
- * gc.h (Garbage_collection::add_reference): New method.
- (gc_process_relocs): Use Garbage_collection::add_reference to avoid
- code duplication.
- 2010-01-11 Ian Lance Taylor <iant@google.com>
- * script.cc (Version_script_info::build_expression_list_lookup):
- Change complaing about duplicate wildcard match from error to
- warning.
- * script.cc (class Lazy_demangler): Recreate--revert part of patch
- of 2009-12-30.
- (Version_script_info::Version_script_info): Initialize globs_,
- default_version_, default_is_global_, and exact_. Don't
- initialize globals_ or locals_.
- (Version_script_info::build_lookup_tables): Build local symbols
- first.
- (Version_script_info::unquote): New function.
- (Version_script_info::add_exact_match): New function.
- (Version_script_info::build_expression_list_lookup): Remove lookup
- parameter. Add is_global parameter. Change all callers. Handle
- wildcard pattern specially. Unquote pattern. Call
- add_exact_match.
- (Version_script_info::get_name_to_match): New function.
- (Version_script_info::get_symbol_version): New function.
- (Version_script_info::get_symbol_version_helper): Remove.
- (Version_script_info::check_unmatched_names): Call unquote.
- * script.h (class Version_script_info): Change get_symbol_version
- to be non-inline and add is_global parameter; change all callers.
- Rewrite symbol_is_local. Update declarations. Define struct
- Version_tree_match, Exact, Globs. Don't define struct Lookup.
- Remove globals_ and locals_ members. Add exact_, globs_,
- default_version_, is_global_.
- (Version_script_info::Glob): Remove pattern, add expression and
- is_global. Update constructor. Change all callers.
- * dynobj.cc (Versions::finalize): Mark the version symbol as the
- default version.
- (Versions::symbol_section_contents): If a symbol is undefined, or
- defined in a dynamic object, set the version index to
- VER_NDX_LOCAL.
- * symtab.cc (Symbol_table::add_from_relobj): Don't call
- symbol_is_local.
- (Symbol_table::add_from_pluginobj): Likewise.
- * testsuite/ver_matching_test.sh: blaza1 and blaza go into V2.
- 2010-01-11 Doug Kwan <dougkwan@google.com>
- * Makefile.am (incremental_dump_DEPENDENCIES): Add libintl dependency.
- (incremental_dump_LDADD): Add linking option for libintl.
- * Makefile.in: Regenerate.
- 2010-01-11 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/11144
- * testsuite/Makefile.am (dynamic_list.stdout): Use --dyn-syms
- instead of -Ds.
- * testsuite/Makefile.in: Regenerated.
- 2010-01-10 Doug Kwan <dougkwan@google.com>
- * options.h (DEFINE_var): Use parentheses around argument varname__
- in macro body to avoid any unintended subsequent substitutions.
- 2010-01-10 Ian Lance Taylor <iant@google.com>
- * resolve.cc (Symbol_table::resolve): Add symbols to list of ODR
- candidates before doing symbol resolution.
- * resolve.cc (Symbol_table::resolve): Add symbols to the list of
- ODR candidates if only one is weak.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- * script.cc (Version_script_info::build_expression_list_lookup):
- Don't warn about ambiguous version, just record the ambiguity.
- (Version_script_info::get_symbol_version_helper): Give error if
- version is ambiguous.
- 2010-01-08 Doug Kwan <dougkwan@google.com>
- * arm.cc (Stub_table::Stub_table): Initalize cortex_a8_stubs_,
- prev_data_size_ and prev_addralign_. Remove initializer for
- deleted data member has_been_changed_.
- (Stub_table::empty): Look at both reloc_stubs_ and cortex_a8_stubs_
- to determine if the table is empty.
- (Stub_table::has_been_changed, Stub_table_set_has_been_changed):
- Remove.
- (Stub_table::add_reloc_stub): Define method in class definition
- instead of just declaring it there.
- (Stub_table::add_cortex_a8_stub): New method definition.
- (Stub_table::update_data_size_and_addralign): Ditto.
- (Stub_table::finalize_stubs): Ditto.
- (Stub_table::apply_cortex_a8_workaround_to_address_range): Ditto.
- (Stub_table::do_addralign_): Return address alignment in the
- (Stub_table::do_reset_address_and_file_offset): Define method in
- class definition instead of declaring it there. Set current data
- size to be the data size of the previous pass.
- (Stub_table::set_final_data_size): Use current data size as the
- final data size.
- (Stub_table::relocate_stub): Change parameter type of stub from
- Reloc_stub pointer to Stub pointer.
- (Stub_table::addralign_, Stub_table::has_been_changed_): Remove.
- (Stub_table::Cortex_a8_stub_list): New typedef.
- (Stub_table::cortex_a8_stubs_, Stub_table::prev_data_size_,
- Stub_table::prev_addralign_): New data member.
- (Arm_relobj::Arm_relobj): Initialize data member
- section_has_cortex_a8_workaround_.
- (Arm_relobj::section_has_cortex_a8_workaround,
- Arm_relobj::mark_section_for_cortex_a8_workaround): New method
- definitions.
- (Arm_relobj::section_has_cortex_a8_workaround_): New data member
- declarations.
- (Target_arm::relocate_stub): Change parameter type of stub from
- Reloc_stub pointer to Stub pointer.
- (Insn_template::size, Insn_template::alignment): Handle
- THUMB16_SPECIAL_TYPE.
- (Stub_table::remove_all_cortex_a8_stubs, Stub_table::finalize_stubs,
- Stub_table::update_data_size_and_addralign,
- Stub_table::apply_cortex_a8_workaround_to_address_range): New method
- definitions.
- (Stub_table::relocate_stubs): Handle Cortex-A8 stubs.
- (Stub_table::do_write): Ditto.
- (Target_arm::do_relax): Adjust code for changes in Stub_table.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- PR 11108
- * symtab.h (class Symbol): Remove fields is_target_special_ and
- has_plt_offset_. Add field is_defined_in_discarded_section_.
- (Symbol::is_defined_in_discarded_section): New function.
- (Symbol::set_is_defined_in_discarded_section): New function.
- (Symbol::has_plt_offset): Rewrite.
- (Symbol::set_plt_offset): Verify that new offset is not -1U.
- * symtab.cc (Symbol::init_fields): Initialize plt_offset_ to -1U.
- Don't initialize is_target_special_ or has_plt_offset_.
- Initialize is_defined_in_discarded_section_.
- (Symbol_table::add_from_relobj): If appropriate, set
- is_defined_in_discarded_section.
- * resolve.cc (Symbol::override_base_with_special): Don't test
- is_target_special_. Change has_plt_offset_ to has_plt_offset().
- * target-reloc.h (relocate_section): Do special handling for
- symbols defined in discarded sections for global symbols as well
- as local symbols.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- * dynobj.cc (big_endian>::find_dynsym_sections): Set pi to NULL in
- the SHT_SYMTAB case.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj::do_layout): Don't get confused if
- layout_eh_frame returns NULL.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- PR 11084
- * dynobj.cc (Sized_dynobj::find_dynsym_sections): If there is no
- dynamic symbol table, use the normal symbol table.
- (Sized_dynobj::do_read_symbols): Remove assertion about type of
- symbol table.
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- PR 11072
- * layout.cc (Layout::include_section): Remove .gnu_debuglink
- sections.
- 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
- * version.cc (print_version): Change to "Copyright 2010".
- 2010-01-08 Ian Lance Taylor <iant@google.com>
- PR 10287
- PR 11063
- * i386.cc (class Target_i386): Change return type of plt_section
- to be non-const.
- (class Output_data_plt_i386): Add tls_desc_rel_ field.
- (Output_data_plt_i386::Output_data_plt_i386): Initialize
- tls_desc_rel_ field.
- (Output_data_plt_i386::rel_tls_desc): New function.
- (Target_i386::rel_tls_desc_section): New function.
- (Target_i386::Scan::local): Rewrite R_386_TLS_GOTDESC handling.
- (Target_i386::Scan::global): For R_386_TLS_GOTDESC put
- R_386_TLS_DESC reloc in rel_tls_desc_section.
- * x86_64.cc (class Target_x86_64): Add tlsdesc_reloc_info_ field.
- Define struct Tlsdesc_info.
- (Target_x86_64::Target_x86_64): Initialize tlsdesc_reloc_info_.
- (Target_x86_64::do_reloc_symbol_index): New function.
- (Target_x86_64::add_tlsdesc_info): New function.
- (class Output_data_plt_x86_64): Add tlsdesc_rel_ field.
- (Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize
- tlsdesc_rel_ field.
- (Output_data_plt_x86_64::rela_plt): Rename from rel_plt. Change
- all callers.
- (Output_data_plt_x86_64::rela_tlsdesc): New function.
- (Target_x86_64::rela_tlsdesc_section): New function.
- (Target_x86_64::Scan::local): Rewrite R_X86_64_GOTPC32_TLSDESC
- handling.
- (Target_x86_64::Scan::global): For R_X86_64_GOTPC32_TLSDESC put
- (Target_x86_64::do_reloc_addend): New function.
- R_X86_64_TLSDESC reloc in rela_tlsdesc_section.
- * output.h (class Output_reloc) [SHT_REL]: Add new constructor
- declarations. Define TARGET_CODE. Add arg field to u1_ union.
- (Output_reloc::type): New function.
- (Output_reloc::is_local_section_symbol): Check for TARGET_CODE.
- (Output_reloc::is_target_specific): New function.
- (Output_reloc::target_arg): New function.
- (class Output_reloc) [SHT_RELA]: Add four new constructors for
- absolute relocs and target specific relocs.
- (class Output_data_reloc) [SHT_REL]: Add add_absolute and
- add_target_specific.
- (class Output_data_reloc) [SHT_RELA]: Likewise.
- * output.cc (Output_reloc::Output_reloc): Add four new versions
- for absolute relocs and target specific relocs.
- (Output_reloc::set_needs_dynsym_index): Add TARGET_CODE case.
- (Output_reloc::get_symbol_index): Likewise.
- (Output_reloc::local_section_offset): Check that local_sym_index_
- is not TARGET_CODE or 0.
- (Output_reloc::symbol_value): Likewise.
- (Output_reloc::write) [SHT_RELA]: Call target for target specific
- reloc.
- * target.h (class Target): Add reloc_symbol_index and reloc_addend
- functions. Add do_reloc_symbol_index and do_reloc_addend virtual
- functions.
- * layout.cc (add_target_dynamic_tags): Use output section for
- DT_PLTRELSZ and DT_JMPREL.
- 2010-01-07 Ian Lance Taylor <iant@google.com>
- PR 11061
- * output.h (class Output_reloc) [SHT_RELA]: Add is_relative
- function.
- (class Output_data_reloc_generic): Define.
- (class Output_data_reloc_base): Change base class to
- Output_data_reloc_generic. Change add() method to call
- bump_relative_reloc_count for a relative reloc. Remove
- sort_relocs_ field.
- * output.cc (Output_data_reloc_base::do_write): Change sort_reloc_
- to sort_relocs().
- * layout.cc (Layout::add_target_dynamic_tags): Change dyn_rel to
- Output_data_reloc_generic*. Add DT_RELCOUNT/DT_RELACOUNT tag if
- appropriate.
- * layout.h (class Layout): Update declaration.
- 2010-01-07 Ian Lance Taylor <iant@google.com>
- * output.h (class Output_data): Add const version of
- output_section and do_output_section.
- (class Output_section_data): Add const version of
- do_output_section.
- (class Output_section): Likewise.
- * layout.cc (Layout::add_target_dynamic_tags): New function.
- * layout.h (class Layout): Update declarations.
- * arm.cc (Target_arm::do_finalize_sections): Use
- add_target_dynamic_tags.
- * i386.cc (Target_i386::do_finalize_sections): Likewise.
- * powerpc.cc (Target_powerpc::do_finalize_sections): Likewise.
- * sparc.cc (Target_sparc::do_finalize_sections): Likewise.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
- 2010-01-07 Ian Lance Taylor <iant@google.com>
- PR 11042
- * copy-relocs.cc (Copy_relocs::emit_copy_reloc): Mark the dynamic
- object as needed.
- 2010-01-07 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
- Ian Lance Taylor <iant@google.com>
- PR 11019
- * object.cc: Instantiate Xindex::initialize_symtab_xindex and
- Xindex::read_symtab_xindex.
- 2010-01-07 Doug Kwan <dougkwan@google.com>
- * arm.cc (Insn_template::Type): New enum value THUMB16_SPECIAL_TYPE.
- (Insn_template::thumb16_bcond_insn): New method declaration.
- (Insn_template): Fix spelling.
- (Stub::thumb16_special): New method declaration.
- (Stub::do_write): Define virtual method which was previously pure
- virtual.
- (Stub::do_thumb16_special): New method declaration.
- (Stub::do_fixed_endian_write): New template member.
- (Reloc_stub::do_write): Remove.
- (Reloc_stub::do_fixed_endian_write): Remove.
- (Cortex_a8_stub): New class definition.
- (Stub_factory::make_cortex_a8_stub): New method definition.
- (Stub_factory::Stub_factory): Add missing static storage class
- qualifier for elf32_arm_stub_a8_veneer_blx.
- 2010-01-07 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.h (class General_options): Add --warn-unresolved-symbols
- and --error-unresolved-symbols.
- * errors.cc (Errors::undefined_symbol): Implement
- --warn-unresolved-symbols.
- * options.h (class General_options): Add -z text and -z textoff.
- * layout.cc (Layout::finish_dynamic_section): Implement -z text.
- 2010-01-06 Sriraman Tallam <tmsriram@google.com>
- * gc.h (Garbage_collection::Cident_section_map): New typedef.
- (Garbage_collection::cident_sections): New function.
- (Garbage_collection::add_cident_section): New function.
- (Garbage_collection::cident_sections_): New member.
- (gc_process_relocs): Add references to sections whose names are C
- identifiers.
- * gold.h (cident_section_start_prefix): New constant.
- (cident_section_stop_prefix): New constant.
- (is_cident): New function.
- * layout.cc (Layout::define_section_symbols): Replace string constants
- with the newly defined constants.
- * object.cc (Sized_relobj::do_layout): Track sections whose names are
- C identifiers.
- * testsuite/Makefile.am: Add gc_orphan_section_test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gc_orphan_section_test.cc: New file.
- * testsuite/gc_orphan_section_test.sh: New file.
- 2010-01-06 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.h (class General_options): Add --warn-shared-textrel.
- * layout.cc (Layout::finish_dynamic_section): Implement
- --warn-shared-textrel.
- PR 10980
- * options.h (class General_options): Add --warn-multiple-gp.
- 2010-01-06 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * Makefile.am (incremental_dump_DEPENDENCIES): Remove
- $(THREADSLIB) and $(LIBDL).
- * Makefile.in: Rebuild.
- 2010-01-06 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.cc (General_options::parse_section_start): New function.
- (General_options::section_start): New function.
- (General_options::General_options): Initialize all members.
- * options.h: Include <map>
- (class General_options): Add --section-start. Add section_starts_
- member.
- * layout.cc (Layout::attach_allocated_section_to_segment): If
- --section-start was used, set the address of the segment. Remove
- local sort_sections.
- (Layout::relaxation_loop_body): If the address of the load segment
- has been set by --section-start, don't use it.
- * output.h (Output_segment::update_flags_for_output_section): New
- function.
- * output.cc (Output_segment::add_output_section): Call
- update_flags_for_output_section.
- 2010-01-05 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.h (class General_options): Add --undefined-version.
- * script.cc (struct Version_expression): Add was_matched_by_symbol
- field.
- (Version_script_info::matched_symbol): New function.
- (Version_script_info::get_symbol_version_helper): Call
- matched_symbol.
- (Version_script_info::check_unmatched_names): New function.
- * script.h (class Version_script_info): Update declarations.
- * gold.cc (queue_middle_tasks): Handle --no-undefined-version.
- * options.h (class General_options): Use DEFINE_bool_alias for
- allow_multiple_definition.
- * resolve.cc (Symbol_table::should_override): Don't test
- allow_multiple_definition.
- PR 10980
- * options.h (class General_options): Add --cref.
- * main.cc (main): Print cref table if --cref. Don't close mapfile
- until after printing cref table.
- * cref.cc: Include "symtab.h".
- (class Cref_inputs): Define Cref_table_compare and Cref_table.
- (Cref_table_compare::operator()): New function.
- (Cref_inputs::gather_cref): New function.
- (filecol): New static const.
- (Cref_inputs::print_cref): New function.
- (Cref::print_cref): New function.
- * cref.h: Include <cstdio>.
- (class Cref): Update declarations.
- * mapfile.h (Mapfile::file): New function.
- * object.h (class Object): Define Symbols. Declare virtual
- do_get_global_symbols.
- (Object::get_global_symbols): New function.
- * object.cc (Input_objects::add_object): Pass object to cref_ if
- --cref.
- (Input_objects::archive_start): Likewise.
- (Input_objects::archive_stop): Likewise.
- (Input_objects::print_cref): New function.
- * dynobj.h (Sized_dynobj::do_get_global_symbols): New function.
- * dynobj.cc (big_endian>::do_add_symbols): Create symbols_ if
- --cref.
- * plugin.cc (Sized_pluginobj::do_get_global_symbols): New
- function.
- * plugin.h (class Sized_pluginobj): Update declarations.
- 2010-01-05 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::add_from_object): Rename def parameter
- to is_default_version. Rename insdef to insdefault.
- (Symbol_table::add_from_relobj): Rename def to is_default_version
- and local to is_forced_local.
- (Symbol_table::add_from_pluginobj): Likewise.
- (Symbol_table::add_from_dynobj): Likewise.
- (Symbol_table::define_special_symbol): Rename insdef to
- insdefault.
- 2010-01-04 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.h (class General_options): Add
- --allow-multiple-definition and -z muldefs.
- * resolve.cc (Symbol_table::should_override): Don't warn about a
- multiple symbol definition if --allow-multiple-definition or -z
- muldefs.
- PR 10980
- * options.h (class General_options): Add --add-needed and
- --copy-dt-needed-entries. Tweak --as-needed help entry.
- * object.cc (Input_objects::check_dynamic_dependencies): Give an
- error if --copy-dt-needed-entries aka --add-needed is used and
- would cause a change in behaviour.
- PR 10980
- * options.h (class General_options): Add -G as a short version of
- --shared. Add no-op options -assert, -g, and -i.
- 2010-01-04 Sriraman Tallam <tmsriram@google.com>
- * gc.h (gc_process_relocs): Call is_section_foldable_candidate to
- check for .text or .gnu.linkonce.t sections.
- * icf.cc (Icf::find_identical_sections): Ditto.
- Change the detection for mangled function name within the section
- name.
- * icf.h (is_section_foldable_candidate): New function.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10980
- * options.h (class General_options): Permit two dashes with
- --retain-symbols-file.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10979
- * layout.cc (Layout::relaxation_loop_body): If -Ttext was used,
- don't put the file header and segment headers in the text
- segment.
- PR 10979
- * common.cc (Sort_commons::operator()): Stabilize sort when both
- entries are NULL.
- (Symbol_table::do_allocate_commons_list): When allocating common
- symbols, skip a symbol which is no longer common.
- * symtab.h (Symbol::is_common): Test whether the symbol comes from
- an object before checking its type.
- * testsuite/common_test_2.c: New file.
- * testsuite/common_test_3.c: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add common_test_2.
- (common_test_2_SOURCES, common_test_2_DEPENDENCIES): Define.
- (common_test_2_LDFLAGS, common_test_2_LDADD): Define.
- (common_test_2_pic.o, common_test_2.so): New targets.
- (common_test_3_pic.o, common_test_3.so): New targets.
- * testsuite/Makefile.in: Rebuild.
- PR 10979
- * script.cc (read_input_script): If we see a new SECTIONS clause,
- and we have added an input section, give an error.
- * layout.h (class Layout): Add have_added_input_section function.
- Add have_added_input_section_ field.
- * layout.cc (Layout::Layout): Initialize
- have_added_input_section_.
- (Layout::layout): Set have_added_input_section_.
- (Layout::layout_eh_frame): Likewise.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10931
- * options.h (class General_options): Add --sort-common option.
- * symtab.h (class Symbol_table): Define Sort_commons_order enum.
- * common.cc (Sort_common): Add sort_order parameter to
- constructor. Add sort_order_ field.
- (Sort_commons::operator): Check sort_order_.
- (Symbol_table::allocate_commons): Determine the sort order.
- (Symbol_table::do_allocate_commons): Add sort_order parameter.
- Change all callers.
- (Symbol_table::do_allocate_commons_list): Likewise.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10916
- * symtab.cc (Symbol_table::add_from_relobj): When not exporting
- symbols from this object, don't change the visibility of an
- undefined symbol.
- * testsuite/exclude_libs_test_1.c (lib1_ref): New function.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10861
- * script.h (class Version_script_info): Define Language enum.
- Update declarations. Define Glob, Exact, and Lookup types. Add
- new fields globals_, locals_, and is_finalized_.
- * script.cc: Various formatting fixes.
- (class Parser_closure): Change language_stack_ from a vector of
- std::string to one of Version_script_info::Language. Adjust all
- uses accordingly.
- (class Lazy_demangler): Remove.
- (struct Version_expression): Change language from std::string to
- Version_script_info::Language.
- (Version_script_info::Version_script_info): New function.
- (Version_script_info::~Version_script_info): Don't call clear.
- (Version_script_info::finalize): New function.
- (Version_script_info::build_lookup_tables): New function.
- (Version_script_info::build_expression_list_lookup): New
- function.
- (Version_script_info::get_symbol_version_helper): Rewrite to use
- lookup tables.
- (Version_script_info::print_expression_list): Adjust to use
- Version_script_info::Language.
- (script_push_lex_into_version_mode): Check that the version script
- has not been finalized.
- (version_script_push_lang): Change language string to
- Version_script_info::Language.
- * options.cc (Command_line::version_script): New function.
- * options.h (class General_options): Add finalize_dynamic_list
- function. Change version_script from declaration to definition.
- * testsuite/ver_test_4.script: Remove duplicate def of t2_2.
- * testsuite/version_script.map: Remove duplicate def of foo.
- * testsuite/Makefile.am (ver_matching_def.so): Depend upon
- version_script.map.
- * testsuite/Makefile.in: Rebuild.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10843
- * target-reloc.h (relocate_for_relocatable): When copying a reloc,
- if the input symbol index is 0, make the output symbol index 0.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10670
- * options.h (class General_options): Add -x/--discard-all.
- * object.cc (Sized_relobj::do_count_local_symbols): Handle
- --discard-all. If the local symbol needs a dynamic entry, check
- that before handling --discard-locals.
- 2009-12-30 Ian Lance Taylor <iant@google.com>
- PR 10450
- * output.cc (Output_segment::Output_segment): If PT_TLS, set the
- flags to PF_R.
- (Output_segment::add_output_section): Don't change the flags if
- the type is PT_TLS.
- PR 10450
- * dynobj.cc (Dynobj::create_gnu_hash_table): Add symbols to the
- GNU hash table if they need a dynamic value. Otherwise, don't add
- them if they are defined in a dynamic object or are forced local.
- 2009-12-29 Ian Lance Taylor <iant@google.com>
- PR 10450
- * layout.cc (Layout::create_dynamic_symtab): Only set entsize of
- .gnu.hash table for a 32-bit target.
- PR 10450
- * symtab.h (Symbol::needs_dynsym_entry): A symbol in both a
- regular and a dynamic object only needs a dynamic symbol table
- entry if it is externally visible.
- PR 10450
- * i386.cc (class Target_i386): Initialize global_offset_table_ in
- constructor. Add global_offset_table_ field.
- (Target_i386::got_section): Set global_offset_table_.
- (Target_i386::do_finalize_sections): Set global_offset_table_
- size.
- * x86_64.cc (class Target_x86_64): Initialize global_offset_table_
- in constructor. Add global_offset_table_ field.
- (Target_x86_64::got_section): Set global_offset_table_.
- (Target_x86_64::do_finalize_sections): Set global_offset_table_
- size.
- * layout.cc (Layout::Layout): Initialize increase_relro_.
- (Layout::get_output_section): Add is_relro, is_last_relro, and
- is_first_non_relro parameters. Change all callers.
- (Layout::choose_output_section): Likewise.
- (Layout::add_output_section_data): Likewise.
- (Layout::make_output_section): Likewise.
- (Layout::set_segment_offsets): Clear increase_relro when using a
- linker script.
- * layout.h (class Layout): Add increase_relro method. Add
- increase_relro_ field. Update declarations.
- * output.cc (Output_section::Output_section): Initialize
- is_last_relro_ and is_first_non_relro_.
- (Output_segment::add_output_section): Group relro sections is
- do_sort is true. Handle is_last_relro and is_first_non_relro.
- (Output_segment::maximum_alignment): Remove relro handling.
- (Output_segment::set_section_addresses): Add increase_relro
- parameter. Change all callers. Add initial alignment to align
- relro sections on separate page. Remove old relro handling.
- (Output_segment::set_section_list_addresses): Remove in_relro
- parameter. Change all callers.
- (Output_segment::set_offset): Add increase parameter. Change all
- callers. Remove old relro handling.
- * output.h (class Output_section): Add new methods: is_last_relro,
- set_is_last_relro, is_first_non_relro, set_is_first_non_relro.
- Add is_last_relro_ and is_first_non_relro_ fields.
- * i386.cc (Target_i386::got_section): Don't call set_is_relro.
- Create separate .got.plt section. Call increase_relro.
- * x86_64.cc (Target_x86_64::got_section): Likewise.
- * testsuite/relro_script_test.t: Add .got.plt.
- PR 10450
- * layout.cc (Layout::Layout): Initialize dynamic_symbol_ field.
- (Layout::create_initial_dynamic_sections): Set dynamic_symbol_.
- (Layout::finalize): Call set_dynamic_symbol_size.
- (Layout::set_dynamic_symbol_size): New function.
- * layout.h (class Layout): Add dynamic_symbol_ field. Declare
- set_dynamic_symbol_size.
- PR 10450
- * output.h (class Output_section): Add is_entsize_zero_ field.
- * output.cc (Output_section::Output_section): Initialize
- is_entsize_zero_.
- (Output_section::set_entsize): If two different entsizes are
- requested, force it to zero.
- (Output_section::add_input_section): Set flags for .debug_str
- before updating section flags. Set entsize.
- (Output_section::update_flags_for_input_section): Set SHF_MERGE
- and SHF_STRING if all input sections have those flags.
- 2009-12-29 Rafael Espindola <espindola@google.com>
- * main.cc (main): Fix the sys time reporting.
- * workqueue.cc (Workqueue::find_and_run_task): Fix the sys time
- reporting.
- 2009-12-29 Sriraman Tallam <tmsriram@google.com>
- * options.cc (General_options::parse_version): Allow -v to exit
- without an error if there is nothing to link.
- 2009-12-29 Ian Lance Taylor <iant@google.com>
- * configure.ac: Set the MCMODEL_MEDIUM conditional to false if
- using a version of gcc before 4.1.
- * configure: Rebuild.
- 2009-12-28 Chris Demetriou <cgd@google.com>
- * attributes.cc (Output_attributes_section_data::do_write): Use
- std::vector::front rather than std::vector::data.
- 2009-12-28 Ian Lance Taylor <iant@google.com>
- * symtab.h (class Symbol_table): Add enum Defined.
- * resolve.cc (Symbol_table::should_override): Add defined
- parameter. Change all callers. Test whether object is NULL
- before calling a method on it.
- (Symbol_table::report_resolve_problem): Add defined parameter.
- Change all callers.
- (Symbol_table::should_override_with_special): Likewise.
- * symtab.cc (Symbol_table::define_in_output_data): Add defined
- parameter. Change all callers.
- (Symbol_table::do_define_in_output_data): Likewise.
- (Symbol_table::define_in_output_segment): Likewise.
- (Symbol_table::do_define_in_output_segment): Likewise.
- (Symbol_table::define_as_constant): Likewise.
- (Symbol_table::do_define_as_constant): Likewise.
- * script.h (class Symbol_assignment): Add is_defsym parameter to
- constructor; change all callers.
- * script.cc (Script_options::add_symbol_assignment): Add is_defsym
- parameter. Change all callers. Add is_defsym_ field.
- (class Parser_closure): Add parsing_defsym parameter to
- constructor; change all callers. Add parsing_defsym accessor
- function. Add parsing_defsym_ field.
- 2009-12-28 Ian Lance Taylor <iant@google.com>
- * gold.cc (queue_middle_tasks): Fix formatting.
- * object.cc (Relobj::is_section_name_included): Likewise.
- 2009-12-23 Ian Lance Taylor <iant@google.com>
- * i386.cc (Target_i386::do_calls_non_split): Recognize
- -fsplit-stack prologue for a function with a static chain.
- * x86_64.cc (Target_x86_64::do_calls_non_split): Recognize
- -fsplit-stack prologue when using %r11.
- 2009-12-21 Sriraman Tallam <tmsriram@google.com>
- * options.cc (General_options::parse_version): Make -v continue and do
- the link like GNU ld does.
- 2009-12-17 Rafael Avila de Espindola <espindola@google.com>
- * Makefile.am (CCFILES): Add timer.cc.
- (HFILES): Add timer.h.
- * configure.ac: Check for sysconf and times.
- * main.cc: include timer.h.
- (main): Use Timer instead of get_run_time.
- * timer.cc: New.
- * timer.h: New.
- * workqueue.cc: include timer.h.
- (Workqueue::find_and_run_task):
- Report user, sys and wall time.
- * Makefile.in: Regenerate.
- * config.in: Regenerate.
- * configure: Regenerate.
- 2009-12-16 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::scan_sections_for_stubs): Exclude ICF-eliminated
- sections.
- * object.cc (Sized_relobj::do_finalize_local_symbols): Handle
- relaxed input sections.
- * output.cc (Output_section::find_relaxed_input_section): Change
- return type to Output_relaxed_input_section pointer. Adjust code
- for new type of relaxed_input_section_map_.
- * output.h (Output_section::find_relaxed_input_section): Change
- return type to Output_relaxed_input_section pointer.
- (Output_section::Output_relaxed_input_section_by_input_section_map):
- New type.
- (Output_section::relaxed_input_section_map_): Change type to
- Output_section::Output_relaxed_input_section_by_input_section_map.
- * symtab.cc (Symbol_table::compute_final_value): Handle relaxed
- input section.
- 2009-12-15 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::create_shstrtab): Only write out after input
- sections if we are compressing debug sections.
- 2009-12-15 Ian Lance Taylor <iant@google.com>
- * archive.cc (Archive::add_symbols): Only look up a symbol without
- a version if there is, in fact, a version.
- 2009-12-14 Ian Lance Taylor <iant@google.com>
- Revert -Wshadow changes, all changes from:
- 2009-12-11 Doug Kwan <dougkwan@google.com>
- 2009-12-11 Nick Clifton <nickc@redhat.com>
- * configure.ac: Remove -Wshadow when setting WARN_CXXFLAGS.
- 2009-12-11 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::do_finalize_sections): Fix build breakage
- due to -Wshadow.
- * attributes.cc (Object_attribute::size): Ditto.
- (Attributes_section_data::size): Ditto.
- (Attributes_section_data::Attributes_section_data): Ditto.
- (Output_attributes_section_data::do_write): Ditto.
- * attributes.h (Object_attribute::set_type): Ditto.
- * testsuite/tls_test_main.cc (safe_lock, safe_unlock): Ditto.
- 2009-12-11 Nick Clifton <nickc@redhat.com>
- * archive.cc: Fix shadowed variable warnings.
- * arm.cc: Likewise.
- * compressed_output.cc: Likewise.
- * compressed_output.h: Likewise.
- * configure: Likewise.
- * dwarf_reader.cc: Likewise.
- * dynobj.cc: Likewise.
- * dynobj.h: Likewise.
- * ehframe.cc: Likewise.
- * ehframe.h: Likewise.
- * errors.cc: Likewise.
- * expression.cc: Likewise.
- * fileread.cc: Likewise.
- * fileread.h: Likewise.
- * freebsd.h: Likewise.
- * i386.cc: Likewise.
- * icf.cc: Likewise.
- * incremental.h: Likewise.
- * layout.cc: Likewise.
- * layout.h: Likewise.
- * mapfile.cc: Likewise.
- * merge.cc: Likewise.
- * merge.h: Likewise.
- * object.cc: Likewise.
- * object.h: Likewise.
- * options.h: Likewise.
- * output.cc: Likewise.
- * output.h: Likewise.
- * parameters.cc: Likewise.
- * plugin.cc: Likewise.
- * powerpc.cc: Likewise.
- * reduced_debug_output.cc: Likewise.
- * reduced_debug_output.h: Likewise.
- * reloc.cc: Likewise.
- * reloc.h: Likewise.
- * resolve.cc: Likewise.
- * script-sections.cc: Likewise.
- * script.cc: Likewise.
- * script.h: Likewise.
- * sparc.cc: Likewise.
- * symtab.cc: Likewise.
- * symtab.h: Likewise.
- * target-select.cc: Likewise.
- * target-select.h: Likewise.
- * token.h: Likewise.
- * workqueue.cc: Likewise.
- * workqueue.h: Likewise.
- * x86_64.cc: Likewise.
- 2009-12-10 Doug Kwan <dougkwan@google.com>
- * arm.cc (attributes.h): New include.
- (Arm_relobj::Arm_relobj): Initialize attributes_section_data_.
- (Arm_relobj::~Arm_relobj): Delete object pointed by
- attributes_section_data_.
- (Arm_relobj::attributes_section_data): New method definition.
- (Arm_relobj::attributes_section_data_): New data member declaration.
- (Arm_dynobj::Arm_dynobj): Initialize attributes_section_data_.
- (Arm_dynobj::~Arm_dynobj): Delete object pointed by
- attributes_section_data_.
- (Arm_dynobj::attributes_section_data): New method definition.
- (Arm_dynobj::attributes_section_data_): New data member declaration.
- (Target_arm::Target_arm): Initialize attributes_section_data_. Change
- initialization value of may_use_blx_ to false.
- (Target_arm::using_thumb2, Target_arm::using_thumb_only,
- Target_arm::may_use_arm_nop, Target_arm::may_use_thumb2_nop): Use
- object attributes to compute results instead of hard-coding.
- (Target_arm::do_attribute_arg_type, Target_arm::do_attributes_order,
- Target_arm::get_secondary_compatible_arch,
- Target_arm::set_secondary_compatible_arch
- Target_arm::tag_cpu_arch_combine, Target_arm::aeabi_enum_name,
- Target_arm::tag_cpu_name_value, Target_arm::merge_object_attributes):
- New method declarations.
- (Target_arm::get_aeabi_object_attribute): New method definition.
- (Target_arm::attributes_section_data_): New data member declaration.
- (read_arm_attributes_section): New template definition.
- (Arm_relobj::do_read_symbols): Read attributes section if it exists.
- (Arm_dynobj::do_read_symbols): Ditto.
- (Target_arm::do_finalize_sections): Merge attributes sections from
- input. Check for BLX use after attributes section merging.
- Fix __exidx_start and __exidx_end visibility. Create an
- .ARM.attributes section if necessary.
- (Target_arm::get_secondary_compatible_arch,
- Target_arm::set_secondary_compatible_arch,
- Target_arm::tag_cpu_arch_combine, Target_arm::aeabi_enum_name,
- Target_arm::tag_cpu_name_value, Target_arm::merge_object_attributes,
- Target_arm::do_attribute_arg_type, Target_arm::do_attributes_order):
- New method definitions.
- 2009-12-09 Ian Lance Taylor <iant@google.com>
- * plugin.cc (Plugin::load): Don't cast from void* to a function
- pointer.
- 2009-12-09 Ian Lance Taylor <iant@google.com>
- * dynobj.cc (Sized_dynobj::do_read_symbols): Clear version
- information fields.
- 2009-12-09 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (two_file_shared_1_pic_2_test_DEPENDENCIES):
- Replace two_file_shared_1.so with two_file_shared_2.so.
- * testsuite/Makefile.in: Regenerated.
- 2009-12-08 Doug Kwan <dougkwan@google.com>
- * Makefile.am (CCFILES): Add attributes.cc and int_encoding.cc.
- (HFILES): Add attributes.h and int_encoding.h.
- * Makefile.in: Regenerate.
- * dwarf_reader.cc (read_unsigned_LEB_128, read_signed_LEB_128): Move
- function definitions to int_encoding.cc
- * dwarf_reader.h (read_unsigned_LEB_128, read_signed_LEB_128): Move
- prototypes to int_encoding.h
- * reduced_debug_output.cc (int_encoding.h): New include.
- (write_unsigned_LEB_128, get_length_as_unsigned_LEB_128): Move
- function definitions to int_encoding.cc
- (insert_into_vector, read_from_pointer): Move template definitions to
- int_encoding.h
- * attributes.cc: New file.
- * attributes.h: New file.
- * int_encoding.cc: New file.
- * int_encoding.h: New file.
- 2009-12-07 Rafael Avila de Espindola <espindola@google.com>
- PR gold/11055
- * incremental-dump.cc (dump_incremental_inputs): New.
- (main): Use dump_incremental_inputs.
- 2009-12-07 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/10893
- * i386.cc (Target_i386::Scan::globa): Use is_func instead of
- checking elfcpp::STT_FUNC.
- (Target_i386::Relocate::relocate): Likewise.
- * x86_64.cc (Target_x86_64::Scan::global): Likewise.
- * symtab.cc (Symbol_table::sized_write_symbol): Turn IFUNC
- symbols from shared libraries into normal FUNC symbols.
- * symtab.h (Symbol): Add is_func and use it.
- 2009-12-05 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::arm_info): Initialize new fields
- attributes_section and attributes_vendor.
- * i386.cc (Target_i386::i386_info): Same.
- * object.cc (Sized_relobj::do_layout): Skip attribute section.
- * gold/powerpc.cc (Target_powerpc::powerpc_info): Initialize new
- fields attributes_section and attributes_vendor.
- * sparc.cc (Target_sparc::sparc_info): Same.
- * target.h (Target::attributes_section, Target::attributes_vendor,
- Target::is_attributes_section, Target::attribute_arg_type,
- Target::attributes_order): New method definitions.
- (Target::Target_info::attributes_section,
- Target::Target_info::attributes_vendor): New fields.
- (Target::do_attribute_arg_type, Target::do_attributes_order): New
- virtual method definitions.
- * x86_64.cc (Target_x86_64::x86_64_info): Initialize new fields
- attributes_section and attributes_vendor.
- * testsuite/testfile.cc (Target_test::test_target_info): Same.
- 2009-12-05 Doug Kwan <dougkwan@google.com>
- * arm.cc: Update comments about interworking and stub generation.
- (Target_arm::Relocate::reloc_is_non_pic): Update list of relocations
- considered as non-PIC.
- (Arm_relocate_functions::base_abs): Fix formatting.
- (Arm_relocate_functions::got_prel): Fix comment. Change interface
- of function to use GOT entry address instead of offset.
- (Target_arm::Scan::global): Issue an error if a symbol would need a
- PLT does not get one because it is untyped. Remove code to create
- dynamic symbols for relative branches.
- (Target_arm::Relocate::relocate: Use 0 instead of false since function
- takes unsigned integer instead of boolean.
- 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
- * testsuite/Makefile.am (constructor_test_LDADD): New. Empty.
- (two_file_test_LDADD): Likewise.
- (common_test_1_LDADD): Likewise.
- (exception_test_LDADD) Likewise.
- (weak_test_LDADD): Likewise.
- (many_sections_test_LDADD): Likewise.
- (initpri1_LDADD): Likewise.
- (script_test_1_LDADD): Likewise.
- (script_test_2_LDADD): Likewise.
- (justsyms_LDADD): Likewise.
- (binary_test_LDADD): Likewise.
- (large_LDADD): Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2009-12-04 H.J. Lu <hongjiu.lu@intel.com>
- * resolve.cc (symbol_to_bits): Treat STB_GNU_UNIQUE as STB_GLOBAL.
- (Symbol_table::override_with_special): Likewise.
- (Symbol_table::add_from_object): Likewise.
- 2009-12-04 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (Incremental_inputs::sized_create_inputs_section_data):
- Don't set the data_offset twice.
- 2009-12-04 Rafael Avila de Espindola <espindola@google.com>
- * testsuite/Makefile.in: Regenerate.
- 2009-12-03 Doug Kwan <dougkwan@google.com>
- * arm.cc: Remove comment about missing .ARM.exidx section symbols.
- (Target_arm::do_finalize_sections): Add parameter for symbol table
- pointer. Add __exidx_start and __exidx_end symbols as appropriate.
- * i386.cc (Target_i386::do_finalize_sections): Add an additional
- parameter for symbol table pointer.
- * layout.cc (Layout::finalize): Call Target::finalize_sections with
- an additional parameter for a pointer to symbol table.
- * powerpc.cc (Target_powerpc::do_finalize_sections): Add an additional
- parameter for a symbol table pointer.
- * sparc.cc (Target_sparc::do_finalize_sections): Ditto.
- * target.h (Target::finalize_sections, Target::do_finalize_sections):
- Ditto.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Add an additional
- parameter for a symbol table pointer.
- 2009-12-03 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (Incremental_inputs_header)
- (Incremental_inputs_header_write, Incremental_inputs_entry)
- (Incremental_inputs_entry_write): Move ...
- * incremental.h (Incremental_inputs_header)
- (Incremental_inputs_header_write, Incremental_inputs_entry)
- (Incremental_inputs_entry_write): here.
- 2009-12-02 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (make_sized_incremental_binary): Set the target.
- Error if it is incompatible.
- * output.h (Output_file): Add filename method.
- 2009-12-02 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (Incremental_inputs_entry): Remove unused argument
- from the get_* methods.
- 2009-12-02 Rafael Avila de Espindola <espindola@google.com>
- * incremental-dump.cc (main): Check that the offeset of a script is 0.
- * incremental.cc (Incremental_inputs::sized_create_inputs_section_data):
- Write 0 for the data_offset of scripts.
- 2009-12-02 Rafael Avila de Espindola <espindola@google.com>
- * testsuite/Makefile.am: Add the incremental_test.sh test.
- * testsuite/incremental_test.sh: New.
- * testsuite/incremental_test_1.c: New.
- * testsuite/incremental_test_2.c: New.
- 2009-12-01 Rafael Avila de Espindola <espindola@google.com>
- * incremental-dump.cc (main): Fix typos.
- 2009-11-27 Rafael Avila de Espindola <espindola@google.com>
- PR gold/11025
- * incremental-dump.cc (main): Use llu to print 64 bit values.
- 2009-11-26 Per Øyvind Karlsen <peroyvind@mandriva.org>
- H.J. Lu <hongjiu.lu@intel.com>
- * Makefile.am (incremental_dump_DEPENDENCIES): Add $(THREADSLIB)
- $(LIBDL).
- (incremental_dump_LDADD): Likewise.
- * Makefile.in: Regenerated.
- 2009-11-25 Doug Kwan <dougkwan@google.com>
- Revert:
- 2009-11-25 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Target_arm): Move method definition
- outside of class definition. Add code to handle
- --target1-rel, --target1-abs and --target2= options.
- (Target_arm::get_reloc_reloc_type): Change method to be
- non-static and const.
- (Target_arm::target1_is_rel_, Target_arm::target2_reloc_):
- New data member declaration.
- (Target_arm::Scan::local, Target_arm::Scan::global,
- Target_arm::Relocate::relocate,
- Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Adjust call to Target_arm::get_real_reloc_type.
- (Target_arm::get_real_reloc_type): Use command line options
- to determine real types of R_ARM_TARGET1 and R_ARM_TARGET2.
- * options.h (--target1-rel, --target1-abs, --target2): New
- ARM-only options.
- 2009-11-25 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Target_arm): Move method definition outside of
- class definition. Add code to handle --target1-rel, --target1-abs
- and --target2= options.
- (Target_arm::get_reloc_reloc_type): Change method to be non-static
- and const.
- (Target_arm::target1_is_rel_, Target_arm::target2_reloc_): New data
- member declaration.
- (Target_arm::Scan::local, Target_arm::Scan::global,
- Target_arm::Relocate::relocate,
- Target_arm::Relocatable_size_for_reloc::get_size_for_reloc): Adjust
- call to Target_arm::get_real_reloc_type.
- (Target_arm::get_real_reloc_type): Use command line options to
- determine real types of R_ARM_TARGET1 and R_ARM_TARGET2.
- * options.h (--target1-rel, --target1-abs, --target2): New ARM-only
- options.
- 2009-11-25 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::may_use_thumb2_nop): New method definition.
- (Arm_relocate_functions::thumb_branch_common): New metod declaration.
- (Arm_relocate_functions::abs12, Arm_relocate_functions::abs16): Fix
- formatting.
- (Arm_relocate_functions::thm_call): Replace body with a call to
- Arm_relocate_functions::thumb_branch_common.
- (Arm_relocate_functions::thm_jump24,
- Arm_relocate_functions::thm_xpc22): New method definitions.
- (Arm_relocate_functions::thumb_branch_common): New method definition.
- (Reloc_stub::stbu_type_for_reloc): Fix incorrect uses of bit-wise-or
- operator.
- (Target_arm::Relocate::relocate): Adjust call to thm_call.
- Add code to handle R_ARM_THM_XPC22 and R_ARM_THM_JUMP24.
- 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
- * Makefile.am: Build incremental-dump
- * Makefile.in: Regenerate.
- * incremental-dump.cc: New.
- * incremental.cc (Incremental_inputs_header_data,
- Incremental_inputs_entry_data): Move to incremental.h
- * incremental.h: (Incremental_inputs_header_data,
- Incremental_inputs_entry_data): Move from incremental.cc
- 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (Incremental_inputs_header,
- Incremental_inputs_header_write, Incremental_inputs_entry,
- Incremental_inputs_entry_write): Add a typedef with the data type.
- 2009-11-24 Rafael Avila de Espindola <espindola@google.com>
- * incremental.cc (Incremental_inputs_header,
- Incremental_inputs_header_write, Incremental_inputs_entry,
- Incremental_inputs_entry_write): Update comment about which
- type has the filed descriptions.
- 2009-11-15 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::may_use_arm_nop): New method definition.
- (Arm_relocate_functions::arm_branch_common): Change method defintion
- in class definition to a method declaration and update list of formal
- parameters.
- (Arm_relocate_functions::plt32, Arm_relocate_functions::call,
- Arm_relocation_functions::jump24): Adjust call to
- Arm_relocate_functions::arm_branch_common. Update list of formal
- parameters.
- (Arm_relocate_functions::xpc25): New method definition.
- (Arm_relocate_functions::arm_branch_common): Move method defintion
- out from class definition. Use stubs for mode-switching and extending
- branch ranges.
- (Target_arm::Relocate::relocate): Handle weakly-undefined symbols
- specially. Change code to enable use of stubs in ARM branches.
- 2009-11-10 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::do_relocate_sections): Remove options parameter
- in method declaration.
- (Target_arm::relocate_stub): New method declaration.
- (Target_arm::default_target): Change to return a pointer instead of
- a const reference.
- (Reloc_stub::stub_type_for_reloc): Adjust for the change in
- Target_arm::default_target.
- (Arm_Relobj::do_relocate_sections): Remove options paramater in
- method definition.
- (Target_arm::relocate_section): Adjust view.
- (Target_arm::relocate_stub): New method definition.
- 2009-11-10 Doug Kwan <dougkwan@google.com>
- * i386.cc (Target_i386::do_calls_non_split): Add a cast to avoid
- a format warning.
- * incremental.cc (open_incremental_binary): Initialized local
- variables to avoid warnings.
- * object.cc (make_elf_object): Ditto.
- * x86_64.cc (Target_x86_64::do_calls_non_split): Add a cast to avoid
- a format warning.
- 009-11-09 H.J. Lu <hongjiu.lu@intel.com>
- PR gold/10930
- * testsuite/plugin_test.c: Include "config.h".
- 2009-11-09 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::fake_relnum_for_stubs): New constant.
- (arm_symbol_value): Remove.
- (Arm_relocate_functions::arm_branch_common,
- Arm_relocate_functions::abs8, Arm_relocate_functions::thm_abs5,
- Arm_relocate_functions::abs12, Arm_relocate_functions::abs16,
- Arm_relocate_functions::abs32, Arm_relocate_functions::rel32,
- Arm_relocate_functions::thm_call, Arm_relocate_functions::plt32,
- Arm_relocate_functions::call, Arm_relocate_functions::jump24,
- Arm_relocate_functions::prel31, Arm_relocate_functions::mov_abs_nc,
- Arm_relocate_functions::movt_abs, Arm_relocate_functions::movw_abs_nc,
- Arm_relocate_functions::thm_mobw_abs_nc,
- Arm_relocate_functions::thm_mov_abs,
- Arm_relocate_functions::movw_prel_nc,
- Arm_relocate_functions::thm_movt_abs,
- Arm_relocate_functions::movt_prel,
- Arm_relocate_functions::thm_movw_prel_nc,
- Arm_relocate_functions::thm_movt_prel): Adjust callers of the above.
- (Target_arm::Relocate::relocate): Only decompose address into two
- parts if relocation type uses the thumb-bit and pass the actual
- bit instead of a flag indicating that the thumb-bit is used. Adjust
- calls to methods in Arm_relocate_functions for this change.
- 2009-11-08 Ian Lance Taylor <iant@google.com>
- PR 10925
- * reloc.cc: Instantiate
- Sized_relobj::initialize_input_to_output_maps and
- Sized_relobj:free_input_to_output_maps.
- 2009-11-06 Ian Lance Taylor <iant@google.com>
- PR 10876
- * defstd.cc (in_segment): Set only_if_ref true for "end".
- 2009-11-06 Doug Kwan <dougkwan@google.com>
- * arm.cc (class Reloc_stub): Correct a comment.
- (Target_arm::Target_arm): Initialize arm_input_section_map_.
- (Target_arm::scan_section_for_stubs): New method declaration.
- (Target_arm::do_make_elf_object, Target_arm::do_make_output_section):
- Change methods from private to protected.
- (Target_arm::do_may_relax): New method definition.
- (Target_arm::do_relax, Target_arm::group_sections,
- Target_arm::scan_reloc_for_stub,
- Target_arm::scan_reloc_section_for_stubs): New method declarations.
- (Target_arm::arm_input_section_map_): New data member declaration.
- (Target_arm::scan_reloc_for_stub,
- Target_arm::scan_reloc_section_for_stubs,
- Target_arm::scan_section_for_stubs, Target_arm::group_sections,
- Target_arm::do_relax): New method definitions.
- 2009-11-06 Mikolaj Zalewski <mikolaj@google.com>
- * configure.ac: Check for (struct stat)::st_mtim
- * fileread.cc (File_read::get_mtime): Use st_mtim if available.
- * config.in: Regenerate.
- * configure: Regenerate.
- 2009-11-05 Ian Lance Taylor <iant@google.com>
- PR 10910
- * output.cc (Output_segment::add_output_section): Add missing
- return statement.
- 2009-11-04 Ian Lance Taylor <iant@google.com>
- PR 10880
- * object.h (class Object): Add is_needed and set_is_needed
- methods. Add is_needed_ field. Make bool fields into bitfields.
- * symtab.cc (Symbol_table::set_dynsym_indexes): If a symbol is
- defined in a dynamic object and referenced by a regular object,
- set is_needed for the dynamic object.
- * layout.cc (Layout::finish_dynamic_section): Don't add DT_NEEDED
- if the file is marked with as_needed and it is not needed.
- 2009-11-04 Ian Lance Taylor <iant@google.com>
- PR 10887
- * arm.cc (Target_arm::do_finalize_sections): Don't add dynamic
- tags if data is discarded by linker script.
- * i386.cc (Target_i386::do_finalize_sections): Likewise.
- * powerpc.cc (Target_powerpc::do_finalize_sections): Likewise.
- * sparc.cc (Target_sparc::do_finalize_sections): Likewise.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Likewise.
- 2009-11-04 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::get_output_section): Add is_interp and
- is_dynamic_linker_section parameters. Change all callers.
- (Layout::choose_output_section): Likewise.
- (Layout::make_output_section): Likewise.
- (Layout::add_output_section_data): Add is_dynamic_linker_section
- parameter. Change all callers.
- * layout.h (class Layout): Update declarations.
- * output.h (class Output_section): Add is_interp, set_is_interp,
- is_dynamic_linker_section, set_is_dynamic_linker_section methods.
- Add is_interp_, is_dynamic_linker_section_ fields. Change
- generate_code_fills_at_write_ to a bitfield.
- * output.cc (Output_section::Output_sections): Initialize new
- fields.
- (Output_segment::add_output_section): Add do_sort parameter.
- Change all callers.
- 2009-11-03 Ian Lance Taylor <iant@google.com>
- PR 10860
- * options.h (class General_options): Add --warn-common.
- * resolve.cc (Symbol_table::resolve): Handle --warn-common when
- merging two common symbols.
- (Symbol_table::should_override): Handle --warn-common when merging
- a common symbol with a defined symbol. Use report_resolve_problem
- for multiple definitions.
- (Symbol_table::report_resolve_problem): New function.
- * symtab.h (class Symbol_table): Declare report_resolve_problem.
- 2009-11-03 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::Target_arm): Initialize stub_tables_ and
- stub_factory_.
- (Target_arm::stub_factory): New method definition.
- (Target_arm::new_arm_input_section,
- Target_arm::find_arm_input_section, Target_arm::new_stub_table,
- Target_arm::reloc_uses_thumb_bit): New method declarations.
- (Target_arm::Stub_table_list, Target_arm::Arm_input_section_map):
- New type definitions.
- (Target_arm::stub_tables_, Target_arm::stub_factory_): New data
- member declarations.
- (Target_arm::reloc_uses_thumb_bit, Target_arm::new_arm_input_section,
- Target_arm::find_arm_input_section, Target_arm::new_stub_table):
- New method definitions.
- 2009-11-03 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add --warn_constructors.
- 2009-11-03 Ian Lance Taylor <iant@google.com>
- PR 10893
- * defstd.cc (in_section): Add entries for __rel_iplt_start,
- __rel_iplt_end, __rela_iplt_start, __rela_iplt_end, and __stack.
- 2009-11-03 Ian Lance Taylor <iant@google.com>
- PR 10895
- * po/Make-in ($(srcdir)/$(PACKAGE).pot): Pass -C and
- --msgid-bugs-address.
- (install-pdf): New target.
- (install-data_yes): Look up one directory to find mkinstalldirs.
- 2009-11-03 H.J. Lu <hongjiu.lu@intel.com>
- * po/Make-in (.po.gmo): Don't generate .gmo files in source
- tree.
- 2009-10-30 Doug Kwan <dougkwan@google.com>
- * arm.cc (Stub_addend_reader): Fix bug in previouls check-in.
- 2009-10-30 Doug Kwan <dougkwan@google.com>
- * arm.cc (Stub_addend_reader): New struct template definition
- and partial specializations.
- (Stub_addend_reader::operator()): New method definition for a
- partially specialized template.
- 2009-10-30 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj::processor_specific_flags): New method
- definition.
- (Arm_relobj::do_read_symbols): New method declaration.
- (Arm_relobj::processor_specific_flags_): New data member declaration.
- (Arm_dynobj): New class definition.
- (Target_arm::do_finalize_sections): Add input_objects parameter.
- (Target_arm::do_adjust_elf_header): New method declaration.
- (Target_arm::are_eabi_versions_compatible,
- (Target_arm::merge_processor_specific_flags): New method declaration.
- (Target_arm::do_make_elf_object): New overloaded method definitions
- and declaration.
- (Arm_relobj::do_read_symbols): New method definition.
- (Arm_dynobj::do_read_symbols): Ditto.
- (Target_arm::do_finalize_sections): Add input_objects parameters.
- Merge processor-specific flags from all input objects.
- (Target_arm::are_eabi_versions_compatible,
- Target_arm::merge_processor_specific_flags,
- Target_arm::do_adjust_elf_header, Target_arm::do_make_elf_object):
- New method definitions.
- * i386.cc (Target_i386::do_finalize_sections): Add unnamed
- Input_objects pointer type parameter.
- * layout.cc (Layout::finalize): Pass input objects to target's.
- finalize_sections function.
- * output.cc (Output_file_header::do_sized_write): Set ELF file
- header's processor-specific flags.
- * powerpc.cc (Target_powerpc::do_finalize_sections): Add unnamed
- Input_objects pointer type parameter.
- * sparc.cc (Target_sparc::do_finalize_sections): Same.
- * target.h (Input_objects): New forward class declaration.
- (Target::processor_specific_flags,
- Target::are_processor_specific_flags_sect): New method definitions.
- (Target::finalize_sections): Add input_objects parameter.
- (Target::Target): Initialize processor_specific_flags_ and
- are_processor_specific_flags_set_.
- (Target::do_finalize_sections): Add unnamed Input_objects pointer type
- parameter.
- (Target::set_processor_specific_flags): New method definition.
- (Target::processor_specific_flags_,
- Target::are_processor_specific_flags_set_): New data member
- declarations.
- * x86_64.cc (Target_x86_64::do_finalize_sections): Add unnamed
- Input_objects pointer type parameter.
- 2009-10-30 Doug Kwan <dougkwan@google.com>
- * arm.cc: Use Arm_address instead of elfcpp::Elf_types<32>::Elf_Addr.
- 2009-10-28 Ian Lance Taylor <iant@google.com>
- * object.h (class Relobj): Drop options parameter from
- gc_process_relocs, scan_relocs, relocate, do_gc_process_relocs,
- do_scan_relocs, do_relocate. Change all callers.
- (class Sized_relobj): Drop options parameters from
- do_gc_process_relocs, do_scan_relocs, do_relocate,
- do_relocate_sections, relocate_sections, emit_relocs_scan,
- emit_relocs_scan_reltype. Change all callers.
- (struct Relocate_info): Remove options field and all references to
- it.
- * reloc.h (class Read_relocs): Remove options constructor
- parameter and options_ field. Change all callers.
- (class Gc_process_relocs, class Scan_relocs): Likewise.
- (class Relocate_task): Likewise.
- * target-reloc.h (scan_relocs): Remove options parameter. Change
- all callers.
- (scan_relocatable_relocs): Likewise.
- * target.h (class Sized_target): Remove options parameter from
- gc_process_relocs, scan_relocs, scan_relocatable_relocs. Change
- all callers.
- * gc.h (gc_process_relocs): Remove options parameter. Change all
- callers.
- * arm.cc: Update functions to remove options parameters.
- * i386.cc: Likewise.
- * powerpc.cc: Likewise.
- * sparc.cc: Likewise.
- * x86_64.cc: Likewise.
- * testsuite/testfile.cc: Likewise.
- 2009-10-28 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_relobj): New class definition.
- (Arm_relobj::scan_sections_for_stubs,
- Arm_relobj::do_count_local_symbols, Arm_relobj::do_relocate_sections):
- New method definitions.
- 2009-10-28 Cary Coutant <ccoutant@google.com>
- * plugin.h (Plugin::Plugin): Initialize cleanup_done_.
- (Plugin::cleanup_done_): New member.
- (Plugin_manager::Plugin_manager): Remove cleanup_done_.
- (Plugin_manager::cleanup_done_): Remove.
- (Plugin_manager::add_input_file): Edit error message.
- * plugin.cc (Plugin::cleanup): Test and set cleanup_done_.
- (Plugin_manager::cleanup): Remove use of cleanup_done_.
- 2009-10-27 Mikolaj Zalewski <mikolajz@google.com>
- * fileread.cc: (File_read::View::~View): Use the new
- data_ownership_ filed.
- (File_read::~File_read): Dispose the new whole_file_view_.
- (File_read::open): Mmap the whole file if needed.
- (File_read::open): Use whole_file_view_ instead of contents_.
- (File_read::find_view): Use whole_file_view_ if applicable.
- (File_read::do_read): Use whole_file_view_ instead of contents_.
- (File_read::make_view): Use whole_file_view_ instead of contents_,
- update File_read::View::View call.
- (File_read::find_or_make_view): Update File_read::View::View
- call.
- * fileread.h: (File_read::File_read): Initialize whole_file_view_,
- remove contents_
- (File_read::View::Data_ownership): New enum.
- (File_read::View::View): Replace bool mapped_ with Data_ownership
- argument.
- (File_read::View::mapped_): Remove (replaced by data_ownership_).
- (File_read::View::data_ownership_): New field.
- (File_read::contents_): Remove (replaced by whole_file_view_).
- (File_read::whole_file_view_): New field.
- * options.h (class General_options): Add --keep-files-mapped.
- 2009-10-27 Cary Coutant <ccoutant@google.com>
- * symtab.cc (add_from_pluginobj): Pass correct value for is_ordinary.
- * testsuite/Makefile.am (plugin_test_5): New test case.
- * testsuite/Makefile.in: Regenerate.
- 2009-10-25 Doug Kwan <dougkwan@google.com>
- * object.h (Sized_relobj::View_size, Sized_relobj::Views): Change
- from private to protected to allow access by child class.
- (Sized_relobj::do_relocate_sections): New method declaration.
- (Sized_relobj::relocate_sections): Virtualize.
- * reloc.cc (Sized_relobj::do_relocate_sections): Rename from
- Sized_relobj::relocate_sections. Instantiate template explicitly
- for different target sizes and endianity.
- 2009-10-24 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_output_section, Arm_relobj): Forward class declarations.
- (Arm_input_section::as_arm_input_section): New method.
- (Arm_output_section): New class definition.
- (Arm_output_section::create_stub_group,
- Arm_output_section::group_sections): New method definitions.
- 2009-10-22 Doug Kwan <dougkwan@google.com>
- * arm.cc (Arm_input_section): New class definition.
- (Arm_input_section::init, Arm_input_section:do_write,
- Arm_input_section::set_final_data_size,
- Arm_input_section::do_reset_address_and_file_offset): New method
- definitions.
- 2009-10-21 Doug Kwan <dougkwan@google.com>
- * arm.cc (Stub_table, Arm_input_section): New forward class
- declarations.
- (Stub_table): New class defintion.
- (Stub_table::add_reloc_stub, Stub_table::relocate_stubs
- Stub_table::do_reset_address_and_file_offset, Stub_table::do_write):
- New method definition.
- 2009-10-21 Doug Kwan <dougkwan@google.com>
- * arm.cc: Update copyright comments.
- (Target_arm): New forward class template declaration.
- (Arm_address): New type.
- (ARM_MAX_FWD_BRANCH_OFFSET, ARM_MAX_BWD_BRANCH_OFFSET,
- THM_MAX_FWD_BRANCH_OFFSET, THM_MAX_BWD_BRANCH_OFFSET,
- THM2_MAX_FWD_BRANCH_OFFSET, THM2_MAX_BWD_BRANCH_OFFSET): New
- constants.
- (Insn_template): Same.
- (DEF_STUBS): New macro.
- (Stub_type): New enum type.
- (Stub_template): New class definition.
- (Stub): Same.
- (Reloc_stub): Same.
- (Stub_factory): Same.
- (Target_arm::Target_arm): Initialize may_use_blx_ and
- should_force_pic_veneer_.
- (Target_arm::may_use_blx, Target_arm::set_may_use_blx,
- Target_arm::should_force_pic_veneer,
- Target_arm::set_should_force_pic_veneer, Target_arm::using_thumb2,
- Target_arm::using_thumb_only, Target_arm:;default_target): New
- method defintions.
- (Target_arm::may_use_blx_, Target_arm::should_force_pic_veneer_):
- New data member declarations.
- (Insn_template::size, Insn_template::alignment): New method defintions.
- (Stub_template::Stub_template): New method definition.
- (Reloc_stub::Key::name, Reloc_stub::stub_type_for_reloc,
- Reloc_stub::do_fixed_endian_write, Reloc_stub::do_write): Same.
- (Stub_factory::Stub_factory): New method definition.
- * gold.h (string_hash): New template.
- * output.h (Input_section_specifier::hash_value): Use
- gold::string_hash.
- (Input_section_specifier::string_hash): Remove.
- * stringpool.cc (Stringpool_template::string_hash): Use
- gold::string_hash.
- 2009-10-20 Doug Kwan <dougkwan@google.com>
- * object.cc (Sized_relobj::do_finalize_local_symbols): Handle section
- symbols of relaxed input sections.
- * output.h (Output_section::find_relaxed_input_section): Make
- method public.
- 2009-10-16 Doug Kwan <dougkwan@google.com>
- * dynobj.cc (Versions::Versions): Initialize version_script_.
- Only insert base version symbol definition for a shared object
- if version script defines any version versions.
- (Versions::define_base_version): New method definition.
- (Versions::add_def): Check that base version is not needed.
- (Versions::add_need): Define base version lazily.
- * dynobj.h (Versions::define_base_version): New method declaration.
- (Versions::needs_base_version_): New data member declaration.
- * testsuite/Makefile.am (check_SCRIPTS): Add no_version_test.sh
- (check_DATA): Add no_version_test.stdout.
- (libno_version_test.so, no_version_test.o no_version_test.stdout):
- New make rules.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/no_version_test.c: New file.
- * testsuite/no_version_test.sh: Ditto.
- 2009-10-16 Doug Kwan <dougkwan@google.com>
- * expression.cc (class Segment_start_expression): New class definition.
- (Segment_start_expression::value): New method definition.
- (script_exp_function_segment_start): Return a new
- Segment_start_expression.
- * gold/script-c.h (script_saw_segment_start_expression): New function
- prototype.
- * script-sections.cc (Script_sections::Script_sections): Initialize
- SAW_SEGMENT_START_EXPRESSION_ to false.
- (Script_sections::set_section_addresses): Use -Ttext, -Tdata
- and -Tbbs options to specify section addresses if given in
- command line and no SEGMENT_START expression is seen in a script.
- * script-sections.h (Script_sections::saw_segment_start_expression,
- Script_sections::set_saw_segment_start_expression): New method
- definition.
- (Script_sections::saw_segment_start_expression_): New data member
- declaration.
- * script.cc (script_saw_segment_start_expression): New function.
- * yyscript.y (SEGMENT_START): Call script_saw_segment_start_expression.
- * testsuite/Makefile.am (check_SCRIPTS): Add script_test_6.sh,
- script_test_7.sh and script_test_8.sh.
- (check_DATA): Add script_test_6.stdout, script_test_7.stdout and
- script_test_8.stdout.
- (MOSTLYCLEANFILES): Add script_test_6, script_test_7 and script_test_8.
- (script_test_6, script_test_6.stdout, script_test_7,
- script_test_7.stdout, script_test_8, script_test_8.stdout): New rules.
- * Makefile.in: Regenerate.
- * testsuite/script_test_6.sh: New file.
- * testsuite/script_test_6.t: Same.
- * testsuite/script_test_7.sh: Same.
- * testsuite/script_test_7.t: Same.
- * testsuite/script_test_8.sh: Same.
- 2009-10-16 Doug Kwan <dougkwan@google.com>
- * output.cc (Output_segment::set_section_list_address): Cast
- expressions to unsigned long long type to avoid format warnings.
- 2009-10-15 Ian Lance Taylor <iant@google.com>
- * script.cc (Script_options::add_symbol_assignment): Always add a
- dot assignment to script_sections_.
- * script-sections.cc (Script_sections::add_dot_assignment):
- Initialize if necessary.
- * layout.cc (Layout::relaxation_loop_body): Don't crash if we see
- program headers with no load segment if there is a linker script.
- * layout.cc (Layout::set_segment_offsets): Align the file offset
- to the segment aligment for -N or -n with no load segment.
- * output.cc (Output_segment::add_output_section): Don't crash if
- the first section is a TLS section.
- (Output_segment::set_section_list_addresses): Print an error
- message if the address moves backward in a linker script.
- * script-sections.cc
- (Output_section_element_input::set_section_addresses): Don't
- increase *dot_value for a SHF_TLS/SHT_NOBITS section.
- (Orphan_output_section::set_section_addresses): Likewise.
- 2009-10-15 Doug Kwan <dougkwan@google.com>
- * layout.cc (Layout::finish_dynamic_section): Generate tags
- DT_FINI_ARRAY, DT_FINI_ARRAYSZ, DT_INIT_ARRAY, DT_INIT_ARRAYSZ,
- DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ as needed. If -Bsymbolic is
- used, add DT_SYMBOLIC and set DF_SYMBOLIC in DT_FLAGS.
- 2009-10-14 Ian Lance Taylor <iant@google.com>
- * object.h (class Relocate_info): Add reloc_shdr and data_shdr
- fields.
- * object.cc (Sized_relobj::relocate_sections): Set reloc_shdr and
- data_shdr fields of relinfo.
- * i386.cc (class Target_i386::Relocate): Remove ldo_addrs_ field.
- (Target_i386::Relocate::relocate_tls): Don't call fix_up_ldo. For
- R_386_TLS_LDO_32, adjust based on section flags.
- (Target_i386::Relocate::fix_up_ldo): Remove.
- 2009-10-13 Ian Lance Taylor <iant@google.com>
- Add support for -pie.
- * options.h (class General_options): Add -pie and
- --pic-executable.
- (General_options::output_is_position_independent): Test -pie.
- (General_options::output_is_executable): Return true if not shared
- and not relocatable.
- (General_options::output_is_pie): Remove.
- * options.cc (General_options::finalize): Reject incompatible uses
- of -pie.
- * gold.cc (queue_middle_tasks): A -pie link is not static.
- * symtab.h (Symbol::needs_plt_entry): Return false if -pie.
- * symtab.cc (Symbol::final_value_is_known): Return false if
- output_is_position_independent.
- * layout.cc (Layout::set_segment_offsets): Start at address 0 if
- output_is_position_independent.
- * output.cc (Output_file_header::do_sized_write): Use ET_DYN if
- output_is_position_independent.
- * i386.cc (Output_data_plt_i386::do_write): Use the PIC PLT if
- output_is_position_independent.
- * testsuite/Makefile.am (check_PROGRAMS): Add basic_pie_test and
- two_file_pie_test.
- (basic_pie_test.o, basic_pie_test): New targets.
- (two_file_test_1_pie.o, two_file_test_1b_pie.o): New targets.
- (two_file_test_2_pie.o, two_file_test_main_pie.o): New targets.
- (two_file_pie_test): New target.
- * testsuite/Makefile.in: Rebuild.
- * README: Remove note saying that -pie is not supported.
- 2009-10-13 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
- * options.h (class General_options): Add -init and -fini.
- * layout.cc (Layout::finish_dynamic_section): Emit
- given init and fini functions.
- 2009-10-13 Sriraman Tallam <tmsriram@google.com>
- * gc.h (gc_process_relocs): Check if icf is enabled using new
- function.
- * gold.cc (queue_initial_tasks): Likewise.
- (queue_middle_tasks): Likewise.
- * object.cc (do_layout): Likewise.
- * symtab.cc (is_section_folded): Likewise.
- * main.cc (main): Likewise.
- * reloc.cc (Read_relocs::run): Likewise.
- (Sized_relobj::do_scan_relocs): Likewise.
- * icf.cc (is_function_ctor_or_dtor): New function.
- (Icf::find_identical_sections): Check if function is ctor or dtor when
- safe icf is chosen.
- * options.h (General_options::icf): Change option to be an enum.
- (Icf_status): New enum.
- (icf_enabled): New method.
- (icf_safe_folding): New method.
- (set_icf_status): New method.
- (icf_status_): New variable.
- * (options.cc) (General_options::finalize): Set icf_status_.
- * testsuite/Makefile.am: Add commands to build icf_safe_test. Modify
- icf_test and icf_keep_unique_test to use the --icf enum flag.
- * testsuite/icf_safe_test.sh: New file.
- * testsuite/icf_safe_test.cc: New file.
- 2009-10-12 Sriraman Tallam <tmsriram@google.com>
- * symtab.h: Check for GOLD_SYMTAB_H before header includes. Remove
- includes to gc.h and icf.h.
- * arm.cc: Include gc.h.
- * gold.cc: Likewise.
- * i386.cc: Likewise.
- * powerpc.cc: Likewise.
- * sparc.cc: Likewise.
- * x86_64.cc: Likewise.
- * gc.h: Include icf.h.
- 2009-10-11 Ian Lance Taylor <iant@google.com>
- * plugin.cc: Include "gold.h" before other header files.
- 2009-10-10 Chris Demetriou <cgd@google.com>
- * options.h (Input_file_argument::Input_file_type): New enum.
- (Input_file_argument::is_lib_): Replace with...
- (Input_file_argument::type_): New member.
- (Input_file_argument::Input_file_argument): Take Input_file_type
- 'type' rather than boolean 'is_lib' as second argument.
- (Input_file_argument::is_lib): Use type_.
- (Input_file_argument::is_searched_file): New function.
- (Input_file_argument::may_need_search): Handle is_searched_file.
- * options.cc (General_options::parse_library): Support -l:filename.
- (General_options::parse_just_symbols): Update for Input_file_argument
- changes.
- (Command_line::process): Likewise.
- * archive.cc (Archive::get_file_and_offset): Likewise.
- * plugin.cc (Plugin_manager::release_input_file): Likewise.
- * script.cc (read_script_file, script_add_file): Likewise.
- * fileread.cc (Input_file::Input_file): Likewise.
- (Input_file::will_search_for): Handle is_searched_file.
- (Input_file::open): Likewise.
- * readsyms.cc (Read_symbols::get_name): Likewise.
- * testsuite/Makefile.am (searched_file_test): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/searched_file_test.cc: New file.
- * testsuite/searched_file_test_lib.cc: New file.
- 2009-10-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
- Ian Lance Taylor <iant@google.com>
- * descriptor.cc: Include <cstdio> and "binary-io.h".
- (Descriptors::open): Open the files in binary mode always.
- * script.cc (Lex::get_token): Treat \r as whitespace.
- 2009-10-09 Ian Lance Taylor <iant@google.com>
- * testsuite/retain_symbols_file_test.sh: Don't test for __tcf_0.
- 2009-10-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
- Ian Lance Taylor <iant@google.com>
- * configure.ac: Check for readv function also.
- * fileread.cc (readv): Define if not HAVE_READV.
- * fileread.h (File_read:: max_readv_entries): Set to 1 if readv
- does not exist.
- * config.in: Regenerate.
- * configure: Regenerate.
- 2009-10-09 Doug Kwan <dougkwan@google.com>
- * layout.cc (Layout::make_output_section): Call target hook to make
- ordinary output section.
- (Layout::finalize): Adjust parameter list of call the
- Target::may_relax().
- * layout.h (class Layout::section_list): New method.
- * merge.h (Output_merge_base::entsize): Change visibility to public.
- (Output_merge_base::is_string, Output_merge_base::do_is_string):
- New methods.
- (Output_merge_string::do_is_string): New method.
- * object.cc (Sized_relobj::do_setup): renamed from
- Sized_relobj::set_up.
- * object.h (Sized_relobj::adjust_shndx,
- Sized_relobj::initializ_input_to_output_maps,
- Sized_relobj::free_input_to_output_maps): Change visibilities to
- protected.
- (Sized_relobj::setup): Virtualize.
- (Sized_relobj::do_setup): New method declaration.
- (Sized_relobj::invalidate_section_offset,
- Sized_relobj::do_invalidate_section_offset): New method decfinitions.
- (Sized_relobj::elf_file, Sized_relobj::local_values): New methods.
- * options.cc (parse_int): New function.
- * options.h (parse_int): New declaration.
- (DEFINE_int): New macro.
- (stub_group_size): New option.
- * output.cc (Output_section::Output_section): Initialize memebers
- merge_section_map_, merge_section_by_properties_map_,
- relaxed_input_section_map_, is_relaxed_input_section_map_valid_.
- (Output_section::add_input_section): Handled deferred code-fill
- generation and remove an old comment.
- (Output_section::add_relaxed_input_section): New method definition.
- (Output_section::add_merge_input_section): Use merge section by
- properties map to speed to search. Update merge section maps
- as appropriate.
- (Output_section::build_relaxation_map): New method definition.
- (Output_section::convert_input_sections_in_list_to_relaxed_sections):
- Same.
- (Output_section::relax_input_section): Renamed to
- Output_section::convert_input_sections_to_relaxed_sections and change
- interface to take a vector of pointers to relaxed sections.
- (Output_section::find_merge_section,
- Output_section::find_relaxed_input_section): New method definitions.
- (Output_section::is_input_address_mapped,
- Output_section::output_offset, Output_section::output_address):
- Use output section data maps to speed up searching.
- (Output_section::find_starting_output_address): Add comments.
- (Output_section::do_write,
- Output_section::write_to_postprocessing_buffer): Do code-fill
- generation as appropriate.
- (Output_section::get_input_sections): Invalidate relaxed input section
- map.
- (Output_section::restore_states): Adjust type of checkpoint .
- Invalidate relaxed input section map.
- * output.h (Output_merge_base): New class declaration.
- (Input_section_specifier): New class defintion.
- (class Output_relaxed_input_section) Change base class to
- Output_section_data_build.
- (Output_relaxed_input_section::Output_relaxed_input_section): Adjust
- base class initializer.
- (Output_section::add_relaxed_input_section): New method declaration.
- (Output_section::Input_section): Change visibility to protected.
- (Output_section::Input_section::relobj,
- Output_section::Input_section::shndx): Handle relaxed input sections.
- Output_section::input_sections) Change visibility to protected. Also
- define overload to return a non-const pointer.
- (Output_section::Merge_section_properties): New class defintion.
- (Output_section::Merge_section_by_properties_map,
- Output_section::Output_section_data_by_input_section_map,
- Output_section::Relaxation_map): New types.
- (Output_section::relax_input_section): Rename method to
- Output_section::convert_input_sections_to_relaxed_sections and change
- interface to take a vector of relaxed section pointers.
- (Output_section::find_merge_section,
- Output_section::find_relaxed_input_section,
- Output_section::build_relaxation_map,
- Output_section::convert_input_sections_in_list_to_relaxed_sections):
- New method declarations.
- (Output_section::merge_section_map_
- Output_section::merge_section_by_properties_map_,
- Output_section::relaxed_input_section_map_,
- Output_section::is_relaxed_input_section_map_valid_,
- Output_section::generate_code_fills_at_write_): New data members.
- * script-sections.cc
- (Output_section_element_input::set_section_addresses): Call
- current_data_size and addralign methods of relaxed input sections.
- (Orphan_output_section::set_section_addresses): Call current_data_size
- and addralign methods of relaxed input sections.
- * symtab.cc (Symbol_table::compute_final_value): Extract template
- from the body of Symbol_table::sized_finalize_symbol.
- (Symbol_table::sized_finalized_symbol): Call
- Symbol_table::compute_final_value.
- * symtab.h (Symbol_table::Compute_final_value_status): New enum type.
- (Symbol_table::compute_final_value): New templated method declaration.
- * target.cc (Target::do_make_output_section): New method defintion.
- * target.h (Target::make_output_section): New method declaration.
- (Target::relax): Add more parameters for input objects, symbol table
- and layout. Adjust call to do_relax.
- (Target::do_make_output_section): New method declaration.
- (Target::do_relax): Add parameters for input objects, symbol table
- and layout.
- 2009-10-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
- * pread.c: Include stdio.h.
- 2009-10-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
- * plugin.cc: Don't include dlfcn.h when ENABLE_PLUGINS is not
- defined.
- 2009-10-09 Andrew Pinski <andrew_pinski@playstation.sony.com>
- * dwarf_reader.cc (Sized_dwarf_line_info::Sized_dwarf_line_info):
- Change read_shndx type to unsigned int.
- (Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
- int.
- (Sized_dwarf_line_info::read_line_mappings): Likewise.
- * dwarf_reader.h (Sized_dwarf_line_info::Sized_dwarf_line_info):
- Change read_shndx type to unsigned int.
- (Sized_dwarf_line_info::read_lines): Change shndx type to unsigned
- int.
- (Sized_dwarf_line_info::read_line_mappings): Likewise.
- * layout.cc (Layout::create_symtab_sections): Cast the result of
- local_symcount * symsize to off_t in the gold_assert.
- 2009-10-09 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Target_arm::relocate::reloc_is_non_pic): Return true for
- R_ARM_THM_ABS5, R_ARM_ABS8, R_ARM_ABS12, R_ARM_ABS16,
- R_ARM_BASE_ABS.
- (Arm_relocate_functions::abs8): Remove has_thumb_bit parameter.
- (Arm_relocate_functions::thm_abs5): New function.
- (Arm_relocate_functions::abs12): New function.
- (Arm_relocate_functions::abs16): New function.
- (Arm_relocate_functions::base_abs): New function.
- (Scan::check_non_pic): Handle R_ARM_ABS32_NOI.
- (Scan::local): Remove special handling of R_ARM_ABS8. Handle
- R_ARM_ABS32_NOI, R_ARM_THM_ABS5, R_ARM_ABS12, R_ARM_ABS16, and
- R_ARM_BASE_ABS.
- (Scan::global): Likewise.
- (Relocate::relocate): Handle R_ARM_ABS12, R_ARM_ABS16,
- R_ARM_ABS32_NOI, R_ARM_THM_ABS5, and R_ARM_BASE_ABS.
- (Relocatable_size_for_reloc::get_size_for_reloc): Handle
- R_ARM_ABS16, R_ARM_THM_ABS5, R_ARM_ABS32_NOI, R_ARM_ABS12, and
- R_ARM_BASE_ABS.
- 2009-10-09 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Arm_relocate_functions::movw_prel_nc): New function.
- (Arm_relocate_functions::movt_prel): New function.
- (Arm_relocate_functions::thm_movw_prel_nc): New function.
- (Arm_relocate_functions::thm_movt_prel): New function.
- (Scan::local): Handle R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL,
- R_ARM_THM_MOVW_PREL_NC, and R_ARM_THM_MOVT_PREL.
- (Scan::global, Relocate::relocate): Likewise.
- (Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
- 2009-10-09 Mikolaj Zalewski <mikolajz@google.com>
- * gold.cc: (queue_initial_tasks): Pass incremental_inputs to
- Incremental_checker.
- * incremental.cc: (INCREMENTAL_LINK_VERSION): Change type to
- unsigned int.
- (class Incremental_inputs_header): New class.
- (Incremental_inputs_header_writer): Edit comment.
- (Incremental_inputs_entry): New class.
- (Incremental_inputs_entry_writer): Edit comment.
- (Sized_incremental_binary::do_find_incremental_inputs_section):
- Add *strtab_shndx parameter, fill it.
- (Sized_incremental_binary::do_check_inputs): New method.
- (Incremental_checker::can_incrementally_link_output_file): Use
- Sized_incremental_binary::check_inputs.
- (Incremental_inputs::report_command_line): Save command line in
- command_line_.
- * incremental.h:
- (Incremental_binary::find_incremental_inputs_section): New
- method.
- (Incremental_binary::do_find_incremental_inputs_section): Add
- strtab_shndx parameter.
- (Incremental_binary::do_check_inputs): New pure virtual method.
- (Sized_incremental_binary::do_check_inputs): Declare.
- (Incremental_checker::Incremental_checker): Add incremental_inputs
- parameter, use it to initialize incremental_inputs_.
- (Incremental_checker::incremental_inputs_): New field.
- (Incremental_checker::command_line): New method.
- (Incremental_checker::inputs): New method.
- (Incremental_checker::command_line_): New field.
- 2009-10-09 Mikolaj Zalewski <mikolajz@google.com>
- * incremental.cc: Include <cstdarg> and "target-select.h".
- (vexplain_no_incremental): New function.
- (explain_no_incremental): New function.
- (Incremental_binary::error): New method.
- (Sized_incremental_binary::do_find_incremental_inputs_section): New
- method.
- (make_sized_incremental_binary): New function.
- (open_incremental_binary): New function.
- (can_incrementally_link_file): Add checks if output is ELF and has
- inputs section.
- * incremental.h: Include "elfcpp_file.h" and "output.h".
- (Incremental_binary): New class.
- (Sized_incremental_binary): New class.
- (open_incremental_binary): Declare.
- * object.cc (is_elf_object): Use
- elfcpp::Elf_recognizer::is_elf_file.
- (make_elf_object): Use elfcpp::Elf_recognizer::is_valid_header.
- * output.h (Output_file::filesize): New method.
- 2009-10-07 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Arm_relocate_functions::extract_arm_movw_movt_addend):
- New function.
- (Arm_relocate_functions::insert_val_arm_movw_movt): New function.
- (Arm_relocate_functions::extract_thumb_movw_movt_addend): New
- function.
- (Arm_relocate_functions::insert_val_thumb_movw_movt): New
- function.
- (Arm_relocate_functions::movw_abs_nc): New function.
- (Arm_relocate_functions::movt_abs): New function.
- (Arm_relocate_functions::thm_movw_abs_nc): New function.
- (Arm_relocate_functions::thm_movt_abs): New function.
- (Scan::local): Handle R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS,
- R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS.
- (Scan::global): Likewise.
- (Relocate::relocate): Likewise.
- (Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
- 2009-10-07 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (Arm_relocate_functions::got_prel) New function.
- (Scan::local, Scan::global): Handle R_ARM_GOT_PREL.
- (Relocate::relocate): Likewise.
- (Relocatable_size_for_reloc::get_size_for_reloc): Likewise.
- 2009-10-06 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Define
- split_stack_adjust_size parameter.
- * object.h (class Object): Add uses_split_stack_ and
- has_no_split_stack_ fields. Add uses_split_stack and
- has_no_split_stack accessor functions. Declare
- handle_split_stack_section.
- (class Reloc_symbol_changes): Define.
- (class Sized_relobj): Define Function_offsets. Declare
- split_stack_adjust, split_stack_adjust_reltype, and
- find_functions.
- * object.cc (Object::handle_split_stack_section): New function.
- (Sized_relobj::do_layout): Call handle_split_stack_section.
- * dynobj.cc (Sized_dynobj::do_layout): Call
- handle_split_stack_section.
- * reloc.cc (Sized_relobj::relocate_sections): Call
- split_stack_adjust for executable sections in split_stack
- objects. Pass reloc_map to relocate_section.
- (Sized_relobj::split_stack_adjust): New function.
- (Sized_relobj::split_stack_adjust_reltype): New function.
- (Sized_relobj::find_functions): New function.
- * target-reloc.h: Include "object.h".
- (relocate_section): Add reloc_symbol_changes parameter. Change
- all callers.
- * target.h (class Target): Add calls_non_split method. Declare
- do_calls_non_split virtual method. Declare match_view and
- set_view_to_nop.
- * target.cc: Include "elfcpp.h".
- (Target::do_calls_non_split): New function.
- (Target::match_view): New function.
- (Target::set_view_to_nop): New function.
- * gold.cc (queue_middle_tasks): Give an error if mixing
- split-stack and non-split-stack objects with -r.
- * i386.cc (Target_i386::relocate_section): Add
- reloc_symbol_changes parameter.
- (Target_i386::do_calls_non_split): New function.
- * x86_64.cc (Target_x86_64::relocate_section): Add
- reloc_symbol_changes parameter.
- (Target_x86_64::do_calls_non_split): New function.
- * arm.cc (Target_arm::relocate_section): Add reloc_symbol_changes
- parameter.
- * powerpc.cc (Target_powerpc::relocate_section): Add
- reloc_symbol_changes parameter.
- * sparc.cc (Target_sparc::relocate_section): Add
- reloc_symbol_changes parameter.
- * configure.ac: Call AM_CONDITIONAL for the default target.
- * configure: Rebuild.
- * testsuite/Makefile.am (TEST_AS): New variable.
- (check_SCRIPTS): Add split_i386.sh and split_x86_64.sh.
- (check_DATA): Add split_i386 and split_x86_64 files.
- (SPLIT_DEFSYMS): Define.
- (split_i386_[1234n].o): New targets.
- (split_i386_[124]): New targets.
- (split_i386_[1234r].stdout): New targets.
- (split_x86_64_[1234n].o): New targets.
- (split_x86_64_[124]): New targets.
- (split_x86_64_[1234r].stdout): New targets.
- (MOSTLYCLEANFILES): Add new executables.
- * testsuite/split_i386.sh: New file.
- * testsuite/split_x86_64.sh: New file.
- * testsuite/split_i386_1.s: New file.
- * testsuite/split_i386_2.s: New file.
- * testsuite/split_i386_3.s: New file.
- * testsuite/split_i386_4.s: New file.
- * testsuite/split_i386_n.s: New file.
- * testsuite/split_x86_64_1.s: New file.
- * testsuite/split_x86_64_2.s: New file.
- * testsuite/split_x86_64_3.s: New file.
- * testsuite/split_x86_64_4.s: New file.
- * testsuite/split_x86_64_n.s: New file.
- * testsuite/testfile.cc (Target_test): Update relocation_section
- function.
- * testsuite/Makefile.in: Rebuild.
- 2009-10-06 Ian Lance Taylor <iant@google.com>
- * i386.cc (class Target_i386::Relocate): Add ldo_addrs_ field.
- (Target_i386::Relocate::relocate_tls): Call fix_up_ldo before
- changing local_dynamic_type_ from LOCAL_DYNAMIC_NONE. When
- handling R_386_TLS_LDO_32, if local_dynamic_type_ is NONE, push
- the address on ldo_addrs_.
- (Target_i386::Relocate::fix_up_ldo): New function.
- 2009-10-06 Rafael Espindola <espindola@google.com>
- * plugin.cc (add_input_library): New.
- (Plugin::load): Add add_input_library to tv.
- (Plugin_manager::add_input_file): Add the is_lib argument.
- (add_input_file): Update call to Plugin_manager::add_input_file.
- (add_input_library): New.
- * plugin.h (Plugin_manager::add_input_file): Add the is_lib argument.
- 2009-09-30 Doug Kwan <dougkwan@google.com>
- * arm.cc (Target_arm::may_need_copy_reloc): Check for THUMB function
- symbol and call Symbol::may_need_copy_reloc to determine if
- a copy reloc is needed.
- * copy-relocs.cc (Copy_relocs::need_copy_reloc): Return false if -z
- nocopyreloc is given in command line.
- (Copy_relocs::emit_copy_reloc): Assert that -z nocopyreloc is not
- given in command line.
- * i386.cc (Target_i386::may_need_copy_reloc): Remove.
- (Target_i386::Scan::global): Use Symbol::may_need_copy_reloc instead
- of the removed Target_i386::may_need_copy_reloc.
- * options.h (copyreloc): New option with default value false.
- * powerpc.cc (Target_powerpc::may_need_copy_reloc): Remove.
- (Target_powerpc::Scan::global): Use Symbol::may_need_copy_reloc
- instead of the removed Target_powerpc::may_need_copy_reloc.
- * sparc.cc (Target_powerpc::may_need_copy_reloc): Remove.
- (Target_sparc::Scan::global): Use Symbol::may_need_copy_reloc
- instead of the removed Target_sparc::may_need_copy_reloc.
- * symtab.h (Symbol::may_need_copy_reloc): New method definition.
- * x86_64.cc (Target_powerpc::may_need_copy_reloc): Remove.
- (Target_x86_64::Scan::global): Use Symbol::may_need_copy_reloc
- instead of the removed Target_x86_64::may_need_copy_reloc.
- 2009-09-30 Ian Lance Taylor <iant@google.com>
- * object.h (class Object): Remove target_ field, and target,
- sized_target, and set_target methods.
- (Object::sized_target): Remove.
- (class Sized_relobj): Update declarations. Remove sized_target.
- * object.cc (Sized_relobj::setup): Remove target parameter.
- Change all callers.
- (Input_objects::add_object): Don't do anything with the target.
- (make_elf_sized_object): Add punconfigured parameter. Change all
- callers. Set or test parameter target.
- * dynobj.cc (Sized_dynobj::target): Remove target parameter.
- Change all callers.
- * parameters.cc (Parameters::set_target): Change parameter type to
- be non-const.
- (Parameters::default_target): Remove.
- (set_parameters_target): Change parameter type to be non-const.
- (parameters_force_valid_target): New function.
- (parameters_clear_target): New function.
- * parameters.h (class Parameters): Update declarations. Remove
- default_target method. Add sized_target and clear_target
- methods. Change target_ to be non-const.
- (set_parameters_target): Update declaration.
- (parameters_force_valid_target): Declare.
- (parameters_clear_target): Declare.
- * readsyms.cc (Read_symbols::do_read_symbols): Pass punconfigured
- as NULL if we aren't searching.
- (Add_symbols::run): Don't check for compatible target.
- * fileread.cc (Input_file::open_binary): Call
- parameters_force_valid_target.
- * gold.cc (queue_middle_tasks): Likewise.
- * plugin.cc (make_sized_plugin_object): Likewise. Don't call
- set_target on object.
- * dynobj.h (class Sized_dynobj): Update declarations.
- * archive.cc (Archive::get_elf_object_for_member): Return NULL if
- make_elf_object returns NULL.
- (Archive::include_member): Don't check whether object target is
- compatible.
- * output.cc (Output_section::add_input_section): Get target from
- parameters.
- (Output_section::relax_input_section): Likewise.
- * reloc.cc (Sized_relobj::do_gc_process_relocs): Get target from
- parameters.
- (Sized_relobj::do_scan_relocs): Likewise.
- (Sized_relobj::relocate_sections): Likewise.
- * resolve.cc (Symbol_table::resolve): Likewise.
- * symtab.cc (Symbol_table::wrap_symbol): Likewise. Remove object
- parameter. Change all callers.
- (Symbol_table::add_from_object): Get target from parameters.
- (Symbol_table::add_from_relobj): Don't check object target.
- (Symbol_table::add_from_dynobj): Likewise.
- (Symbol_table::define_special_symbol): Get target from
- parameters.
- * symtab.h (class Symbol_table): Update declaration.
- * testsuite/binary_unittest.cc (gold_testsuite): Remove target
- parameter. Change all callers. Clear parameter target.
- (Binary_test): Test target here.
- * testsuite/object_unittest.cc (gold_testsuite): Remove
- target_test_pointer parameter. Change all callers.
- (Object_test): Test target here.
- 2009-09-26 Ian Lance Taylor <iant@google.com>
- * testsuite/initpri1.c: Don't try to use constructor priorities if
- compiling with gcc before 4.3.
- 2009-09-22 Mikolaj Zalewski <mikolajz@google.com>
- * testsuite/retain_symbols_file_test.sh (check_present): Change
- output file name to retain_symbols_file_test.stdout.
- (check_absent): Likewise.
- 2009-09-18 Craig Silverstein <csilvers@google.com>
- * object.cc (Sized_relobj::do_count): Test should_retain_symbol map.
- * options.cc: Include <cerrno> and <fstream>.
- (General_options::finalize): Parse -retain-symbols-file tag.
- * options.h: New flag.
- (General_options): New method should_retain_symbol, new
- variable symbols_to_retain.
- * symtab.cc (Symbol_table::sized_finalize_symbol): Test
- should_retain_symbol map.
- * testsuite/Makefile.am (retain_symbols_file_test): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/retain_symbols_file_test.sh: New file.
- 2009-09-18 Nick Clifton <nickc@redhat.com>
- * po/es.po: Updated Spanish translation.
- 2009-09-17 Doug Kwan <dougkwan@google.com>
- * debug.h (DEBUG_RELAXATION): New constant.
- (DEBUG_ALL): Add DEBUG_RELAXATION.
- (debug_string_to_enum): Add relaxation debug option.
- * layout.cc
- (Layout::Relaxation_debug_check::check_output_data_for_reset_values,
- Layout::Relaxation_debug_check::read_sections,
- Layout::Relaxation_debug_check::read_sections): New method definitions.
- (Layout::Layout): Initialize data members
- record_output_section_data_from_scrips_,
- script_output_section_data_list_ and relaxation_debug_check_.
- (Layout::save_segments, Layout::restore_segments,
- Layout::clean_up_after_relaxation, Layout::prepare_for_relaxation,
- Layout::relaxation_loop_body): New method definitions.
- (Layout::finalize): Support relaxation. Move section layout code to
- Layout::relaxation_loop_body.
- (Layout::set_asection_address_from_script): Move code for orphan
- section placement out.
- (Layout::place_orphan_sections_in_script): New method definition.
- * layout.h (Output_segment_headers, Output_file_header):
- New forward class declarations.
- (Layout::~Layout): Define.
- (Layout::new_output_section_data_from_script): New method definition.
- (Layout::place_orphan_sections_in_script): New method declaration.
- (Layout::Segment_states): New type declaration.
- (Layout::save_segments, Layout::restore_segments,
- Layout::clean_up_after_relaxation, Layout::prepare_for_relaxation,
- Layout::relaxation_loop_body): New method declarations.
- (Layout::Output_section_data_list): New type declaration.
- (Layout::Relaxation_debug_check): New class definition.
- (Layout::record_output_section_data_from_script_,
- Layout::script_output_section_data_list_, Layout::segment_states_,
- Layout::relaxation_debug_check_): New data members.
- * output.cc: (Output_section_headers::do_size): New method definition.
- (Output_section_headers::Output_section_headers): Move size
- computation to Output_section_headers::do_size.
- (Output_segment_headers::do_size): New method definition.
- (Output_file_header::Output_file_header): Move size computation to
- Output_file_header::do_size and call it.
- (Output_file_header::do_size): New method definition.
- (Output_data_group::Output_data_group): Adjust call to
- Output_section_data.
- (Output_data_dynamic::set_final_data_size): Add DT_NULL tag only once.
- (Output_symtab_xindex::do_write): Add array bound check.
- (Output_section::Input_section::print_to_mapfile): Handle
- RELAXED_INPUT_SECTION_CODE.
- (Output_section::Output_section): Initialize data member checkpoint_.
- (Output_section::~Output_section): Delete checkpoint object pointed
- by checkpoint_.
- (Output_section::add_input_section): Always add an Input_section if
- relaxing.
- (Output_section::add_merge_input_section): Add assert.
- (Output_section::relax_input_section): New method definition.
- (Output_section::set_final_data_size): Set load address to zero for
- an unallocated section.
- (Output_section::do_address_and_file_offset_have_reset_values):
- New method definition.
- (Output_section::Input_section_sort_enty::Input_section_sort_enty):
- Handle relaxed input section.
- (Output_section::sort_attached_input_sections): Checkpoint input
- section list lazily.
- (Output_section::get_input_sections): Change type of input_sections to
- list of Simple_input_section pointers. Checkpoint input section list
- lazily. Also handle relaxed input sections.
- (Output_section::add_input_section_for_script): Take a reference to
- a Simple_input_section object instead of Relobj pointer and section
- index as parameter. Handle relaxed input sections.
- (Output_section::save_states, Output_section::restore_states): New
- method definitions.
- * output.h (Output_data::Output_data): Initialize is_data_size_fixed_.
- (Output_data::is_data_size_fixed): New method definition.
- (Output_data::reset_addresss_and_file_offset): Do not reset data size
- if it is fixed.
- (Output_data::address_and_file_offset_have_reset_values): New method
- definition.
- (Output_data::do_address_and_file_offset_have_reset_values): New method
- definition.
- (Output_data::set_data_size): Check that data size is not fixed.
- (Output_data::fix_data_size): New method definition.
- (Output_data::is_data_size_fixed_): New data member.
- (Output_section_headers::set_final_data_size): New method definition.
- (Output_section_headers::do_size): New method declaration.
- (Output_segment_headers::set_final_data_size): New method definition.
- (Output_segment_headers::do_size): New method declaration.
- (Output_file_header::set_final_data_size)::New method definition.
- (Output_file_header::do_size)::New method declaration.
- (Output_section_data::Output_section_data): Add new parameter
- is_data_size_fixed and use it to fix data size.
- (Output_data_const::Output_data_const): Adjust call to base class
- constructor and fix data size.
- (Output_data_const_buffer::Output_data_const_buffer): Adjust call to
- base class constructor and fix data size.
- (Output_data_fixed_space::Output_data_fixed_space): Adjust call to
- base class constructor and fix data size.
- (Output_data_zero_fill::Output_data_zero_fill): Adjust call to base
- class constructor and fix data size.
- (Output_data_group::set_final_data_size): New method definition.
- (Output_data_dynamic::Dynamic_entry::tag): New method definition.
- (Output_symtab_xindex::Output_symtab_xindex): Adjust call to base
- class constructor and fix data size.
- (Output_relaxed_input_section): New class definition.
- (Output_section::Simple_input_section): New class definition.
- (Output_section::get_input_sections): Adjust parameter list.
- (Output_section::add_input_section_for_script): Same.
- (Output_section::save_states, Output_section::restore_states,
- Output_section::do_address_and_file_offset_have_reset_values,
- (Output_section::Input_section::Input_section): Handle
- RELAXED_INPUT_SECTION_CODE. Add new overload for
- Output_relaxed_input_section.
- (Output_section::Input_section::is_input_section,
- Output_section::Input_section::set_output_section): Handle relaxed
- input section.
- (Output_section::Input_section::is_relaxed_input_section,
- Output_section::Input_section::output_section_data,
- Output_section::Input_section::relaxed_input_section): New method
- definitions.
- (Output_section::Input_section::RELAXED_INPUT_SECTION_CODE): New enum
- value.
- (Output_section::Input_section::u1_): Update comments.
- (Output_section::Input_section::u2_): Add new union member poris.
- (Output_section::Checkpoint_output_section): New classs definition.
- (Output_section::relax_input_section): New method declaration.
- (Output_section::checkpoint_): New data member.
- (Output_segment): Update comments.
- (Output_segment::Output_segment): Un-privatize copy constructor.
- (Output_segment::operator=): Un-privatize.
- * script-sections.cc (Output_section_element::Input_section_list):
- Change element type to Output_section::Simple_input_section.
- (Output_section_element_dot_assignment::set_section_addresses):
- Register output section data for relaxation clean up.
- (Output_data_exression::Output_data_expression): Adjust call to base
- constructor to fix data size.
- (Output_section_element_data::set_section_addresses): Register
- Output_data_expression object for relaxation clean up.
- (struct Input_section_info): Replace Relobj pointer and section index
- pair with Output_section::Simple_input_section and Convert struct to a
- class.
- (Input_section_sorter::operator()): Adjust access to
- Input_section_info data member to use accessors.
- (Output_section_element_input::set_section_addresses): Use layout
- parameter. Adjust code to use Output_section::Simple_input_section
- and Input_secction_info classes. Register filler for relaxation
- clean up.
- (Orphan_output_section::set_section_addresses): Replace Relobj pointer
- and section index pair with Output_section::Simple_input_section
- class. Adjust code accordingly.
- (Phdrs_element::release_segment): New method definition.
- (Script_sections::attach_sections_using_phdrs_clause): Do not modify
- segment list.
- (Script_sections::release_segments): New method definition.
- * gold/script-sections.h (Script_sections::release_segments): New
- method declaration.
- * gold/target.h (Target::may_relax, Target::relax,
- Target::do_may_relax, Target::do_relax): New method definitions.
- 2009-09-17 Viktor Kutuzov <vkutuzov@accesssoftek.com>
- * arm.cc (has_signed_unsigned_overflow): New function.
- (Arm_relocate_functions::abs8): New function.
- (Target_arm::Scan::local): Handle R_ARM_ABS8.
- (Target_arm::Scan::global): Likewise.
- (Target_arm::relocate::relocate): Likewise.
- (Target_arm::Relocatable_size_for_reloc::get_size_for_reloc):
- Likewise.
- 2009-09-16 Cary Coutant <ccoutant@google.com>
- * testsuite/Makefile.am (MOSTLYCLEANFILES): Add more generated files.
- * testsuite/Makefile.in: Regenerate.
- 2009-09-11 Nick Clifton <nickc@redhat.com>
- * po/gold.pot: Updated by the Translation project.
- 2009-09-08 Cary Coutant <ccoutant@google.com>
- * output.cc (Output_file::open): Add execute permission to empty file.
- * testsuite/Makefile.am (permission_test): New test.
- * testsuite/Makefile.in: Regenerate.
- 2009-09-02 Ian Lance Taylor <iant@google.com>
- * output.cc (Output_file::resize): Call map_no_anonymous rather
- than map.
- 2009-09-01 Mikolaj Zalewski <mikolajz@google.com>
- * gold.cc: Include "incremental.h".
- (queue_initial_tasks): Call Incremental_checker methods.
- * incremental.cc: Include "output.h".
- (Incremental_checker::can_incrementally_link_output_file): New
- method.
- * incremental.h (Incremental_checker): New class.
- * output.cc (Output_file::open_for_modification): New method.
- (Output_file::map_anonymous): Changed return type to bool. Record
- map in base_ field.
- (Output_file::map_no_anonymous): New method, broken out of map.
- (Output_file::map): Use map_no_anonymous and map_anonymous.
- * output.h (class Output_file): Update declarations.
- 2009-08-24 Cary Coutant <ccoutant@google.com>
- * options.h (Command_line::Pre_options): New class.
- (Command_line::pre_options): New member.
- * options.cc (gold::options::ready_to_register): New variable.
- (One_option::register_option): Do nothing if not registering options.
- Assert if same short option registered twice.
- (General_options::General_options): Turn off option registration when
- done constructing.
- (Command_line::Pre_options::Pre_options): New constructor.
- 2009-08-24 Cary Coutant <ccoutant@google.com>
- * options.h (General_options::no_keep_memory): Remove incorrect
- short option.
- 2009-08-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * Makefile.am (am__skiplex, am__skipyacc): New.
- * Makefile.in: Regenerate.
- 2009-08-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
- * Makefile.am (AM_CPPFLAGS): Renamed from ...
- (INCLUDES): ... this.
- * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add -Wno-portability.
- (AM_CPPFLAGS): Renamed from ...
- (INCLUDE): ... this.
- * Makefile.in, testsuite/Makefile.in: Regenerate.
- * Makefile.in: Regenerate.
- * aclocal.m4: Likewise.
- * config.in: Likewise.
- * configure: Likewise.
- * testsuite/Makefile.in: Likewise.
- * Makefile.am (AUTOMAKE_OPTIONS): Add foreign.
- * testsuite/Makefile.am (AUTOMAKE_OPTIONS): Add foreign.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.in: Regenerate.
- 2009-08-19 Cary Coutant <ccoutant@google.com>
- * resolve.cc (Symbol_table::resolve): Don't complain about defined
- symbols in shared libraries overridden by hidden or internal symbols
- in the main program.
- 2009-08-19 Chris Demetriou <cgd@google.com>
- * testsuite/debug_msg.sh: Match .* rather than ${srcdir} when
- checking source file names in error messages.
- 2009-08-18 Doug Kwan <dougkwan@google.com>
- * dynobj.cc (Sized_dynobj::setup): Take a Target object instead of
- an elcpp::Ehdr as parameter. Adjust call to set_target.
- * dynobj.h (Sized_dynobj::setup): Take a Target object instead of
- an elfcpp::Ehdr as parameter.
- * object.cc (Object::set_target): Remove the version that looks up
- a target and sets it.
- (Sized_relobj::setup): Take a Target object instead of
- an elfcpp::Ehdr as parameter. Adjust call to set_target.
- (make_elf_sized_object): Find target and ask target to
- make an ELF object.
- * object.h: (Object::set_target): Remove the version that looks up
- a target and sets it.
- (Sized_relobj::setup): Take a Target object instead of
- an elfcpp:Ehdr as parameter.
- * target.cc: Include dynobj.h.
- (Target::do_make_elf_object_implementation): New.
- (Target::do_make_elf_object): New.
- * target.h (Target::make_elf_object): New template declaration.
- (Target::do_make_elf_object): New method declarations.
- (Target::do_make_elf_object_implementation): New template declaration.
- 2009-08-14 Ian Lance Taylor <iant@google.com>
- * gold.h (FUNCTION_NAME): Define.
- (gold_unreachable): Use FUNCTION_NAME.
- 2009-08-12 Sriraman Tallam <tmsriram@google.com>
- * icf.cc (Icf::find_identical_sections): Issue a warning when a
- symbol in the --keep-unique list is not found.
- 2009-08-12 Sriraman Tallam <tmsriram@google.com>
- * icf.cc (Icf::find_identical_sections): Unfold symbols that have
- been maked as --keep-unique.
- (Icf::unfold_section): New function.
- * icf.h (Icf::unfold_section): New function.
- * options.h (General_options::keep_unique): New option.
- * testsuite/Makefile.am: Add commands to build icf_keep_unique_test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/icf_keep_unique_test.sh: New file.
- * testsuite/icf_keep_unique_test.cc: New file.
- 2009-08-12 Cary Coutant <ccoutant@google.com>
- PR 10471
- * resolve.cc (Symbol_table::resolve): Check for references from
- dynamic objects to hidden and internal symbols.
- * testsuite/Makefile.am (hidden_test.sh): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/hidden_test.sh: New script.
- * testsuite/hidden_test_1.c: New test source.
- * testsuite/hidden_test_main.c: New test source.
- 2009-08-11 Doug Kwan <dougkwan@google.com>
- * arm.cc: Update comments.
- (Target_arm::do_finalize_sections): Add a special PT_ARM_EXIDX
- segment to locate the .ARM.exidx section if present.
- 2009-08-09 Doug Kwan <dougkwan@google.com>
- * dynobj.h (Sized_dynobj::do_section_entsize): Revert the previous
- patch.
- 2009-08-07 Sriraman Tallam <tmsriram@google.com>
- * dynobj.h (Sized_dynobj::do_section_entsize): Add return to avoid
- compiler warnings.
- 2009-08-06 Sriraman Tallam <tmsriram@google.com>
- * x86_64.cc (Target_x86_64::Relocate::relocate_tls): Check for a
- valid tls_segment only for non-debug-section relocations.
- * testsuite/Makefile.am: Add gc_tls_test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gc_tls_test.cc: New file.
- * testsuite/gc_tls_test.sh: New file.
- 2009-08-05 Sriraman Tallam <tmsriram@google.com>
- * icf.cc: New file.
- * icf.h: New file.
- * Makefile.am (CCFILES): Add icf.cc.
- (HFILES): Add icf.h
- * Makefile.in: Regenerate.
- * dynobj.h (Sized_dynobj::do_section_entsize): New function.
- * gc.h (gc_process_relocs): Populate lists used by icf to contain
- section, symbol and addend information for the relocs.
- * gold.cc (queue_middle_tasks): Call identical code folding.
- * gold.h: Add defines for multimap.
- * layout.cc (Layout::create_symtab_sections): Add symtab as parameter
- to the call of finalize_local_symbols.
- * main.cc (main): Create object of class Icf.
- * object.cc (Sized_relobj::do_layout): Allow this function to be
- called twice during icf.
- (Sized_relobj::do_finalize_local_symbols): Fold symbols corresponding
- to sections marked as identical by icf.
- (Sized_relobj::do_section_flags): Get section_flags from Symbols_data
- when available.
- (Sized_relobj::do_section_entsize): New function.
- * object.h (Object::section_entsize): New function.
- (Object::do_section_entsize): New pure virtual function.
- (Relobj::finalize_local_symbols): Add new parameter.
- (Relobj::do_section_entsize): New function.
- * options.h (General_options::icf): New option.
- (General_options::icf_iterations): New option.
- (General_options::print_icf_sections): New option.
- * plugin.cc (Sized_pluginobj::do_section_entsize): New function.
- * plugin.h (Sized_pluginobj::do_section_entsize): New function.
- * reloc.cc (Read_relocs::run): Delay scanning relocs when doing
- icf.
- * symtab.cc (Symbol_table::is_section_folded): New function.
- (Symbol_table::sized_finalize_symbol): Fold symbols corresponding
- to sections marked as identical by icf.
- * symtab.h (Symbol_table::set_icf): New function.
- (Symbol_table::icf): New function.
- (Symbol_table::is_section_folded): New function.
- (Symbol_table::icf_): New data member.
- * target-reloc.h (relocate_section): Ignore sections folded by icf.
- * testsuite/Makefile.am: Add commands to build icf_test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/icf_test.sh: New file.
- * testsuite/icf_test.cc: New file.
- 2009-07-24 Chris Demetriou <cgd@google.com>
- * layout.cc (is_compressible_debug_section): Fix incorrect
- comment about compressed section names.
- 2009-07-20 Ian Lance Taylor <ian@airs.com>
- PR 10419
- * x86_64.cc (Target_x86_64::do_code_fill): Correct nop sequences.
- 2009-07-16 Ian Lance Taylor <iant@google.com>
- PR 10400
- * layout.h: #include <map>.
- (class Kept_section): Change from struct to class. Add accessors
- and setters. Add section size to Comdat_group mapping. Change
- Comdat_group to std::map. Add is_comdat_ field. Add
- linkonce_size field in union.
- (class Layout): Update declaration of find_or_add_kept_section.
- Don't declare find_kept_object.
- * layout.cc (Layout::find_or_add_kept_section): Remove candidate
- parameter. Add object, shndx, is_comdat, and is_group_name
- parameters. Change all callers. Adjust for new Kept_section.
- (Layout::find_kept_object): Remove.
- * object.cc (Sized_relobj::include_section_group): Update use of
- Kept_section. Rename secnum to shndx. Only record
- Kept_comdat_section if sections are the same size.
- (Sized_relobj::include_linkonce_section): Update use of
- Kept_section. Only record Kept_comdat_section if sections are the
- same size. Set size of linkonce section.
- (Sized_relobj::map_to_kept_section): Update call to
- get_kept_comdat_section.
- * object.h (class Sized_relobj): Rename fields in
- Kept_comdat_section to drop trailing underscores; change object
- field to Relobj*. Change Kept_comdat_section_table to store
- struct rather than pointer.
- (Sized_relobj::set_kept_comdat_section): Remove kept parameter.
- Add kept_object and kept_shndx parameters. Change all callers.
- (Sized_relobj::get_kept_comdat_section): Change return type to
- bool. Add kept_object and kept_shndx parameters. Change all
- callers.
- * plugin.cc (Pluginobj::include_comdat_group): Update call to
- Layout::find_or_add_kept_section.
- 2009-07-09 Ian Lance Taylor <iant@google.com>
- * merge.cc (Object_merge_map::initialize_input_to_output_map):
- Reserve space in the hash table.
- 2009-07-06 Mikolaj Zalewski <mikolajz@google.com>
- * fileread.cc (File_read::get_mtime): New method.
- * fileread.h (Timespec): New structure.
- (File_read::get_mtime): New method.
- * incremental.cc (Incremental_inputs_entry_data::timestamp_usec):
- Renamed from timestamp_nsec.
- (Incremental_inputs_entry_write::timestamp_sec): Fix argument to
- Elf_Xword.
- (Incremental_inputs_entry_write::timestamp_usec): Renamed from
- timestamp_nsec.
- (Incremental_inputs::report_archive): Save mtime; style fix.
- (Incremental_inputs::report_obejct): Save mtime; style fix.
- (Incremental_inputs::report_script): Save mtime; style fix.
- (Incremental_inputs::finalize_inputs): Style fix.
- (Incremental_inputs::finalize): Style fix.
- (Incremental_inputs::create_input_section_data): Store inputs
- mtime.
- * incremental.h (Incremental_inputs::report_script): Add mtime
- argument.
- (Incremental_inputs::Input_info::Input_info): Intialize only one
- union member.
- (Incremental_inputs::Input_info::archive): Move to nameless
- union.
- (Incremental_inputs::Input_info::obejct): Move to nameless union.
- (Incremental_inputs::Input_info::script): Move to nameless union.
- (Incremental_inputs::mtime): New field.
- * script.cc (read_input_script): Pass file mtime to
- Incremental_input.
- * script.h (Script_info::inputs): Style fix.
- 2009-07-01 Ian Lance Taylor <ian@airs.com>
- * freebsd.h (Target_freebsd::do_adjust_elf_header): Use size
- instead of 32.
- 2009-06-24 Ian Lance Taylor <iant@google.com>
- PR 10156
- * layout.cc (Layout::choose_output_section): If we find an
- existing section, update the flags.
- (Layout::create_notes): New function, broken out of
- Layout::finalize.
- (Layout::finalize): Don't create note sections.
- (Layout::create_note): Don't crash if linker script discards
- section.
- (Layout::create_gold_note): Likewise.
- (Layout::create_build_id): Likewise. Don't set
- after_input_sections on the section.
- (Layout::create_executable_stack_info): Remove target parameter.
- Change caller.
- * layout.h (class Layout): Declare create_notes. Update
- declaration of create_executable_stack_info.
- * gold.cc (queue_middle_tasks): Call create_notes.
- * output.cc (Output_section::update_flags_for_input_section): Move
- here from output.h. If SHF_ALLOC flag is newly set, mark address
- invalid.
- * output.h (Output_data::mark_address_invalid): New function.
- (class Output_section): Only declare, not define,
- update_flags_for_input_section. Remove set_flags.
- 2009-06-24 Ian Lance Taylor <iant@google.com>
- * script-sections.cc (Output_section_definition::
- set_section_addresses): Rename shadowing local load_address to
- laddr.
- 2009-06-24 Ian Lance Taylor <iant@google.com>
- PR 10244
- * reloc.cc (relocate_sections): Skip empty relocation sections.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- PR 10156
- * layout.cc (Layout::create_note): Use choose_output_section
- rather than make_output_section.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- PR 10237
- * options.cc (General_options::parse_V): Set printed_version_.
- (General_options::General_options): Initialize printed_version_.
- * options.h (class General_options): Add printed_version_ field.
- * gold.cc (queue_initial_tasks): If there are no input files,
- don't give a fatal error if we printed the version information.
- (queue_middle_tasks): If using -r with a shared object, give a
- fatal error rather than an ordinary error.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- PR 10219
- * layout.cc (Layout::Layout): Initialize have_stabstr_section_.
- (Layout::make_output_section): Set have_stabstr_section_ if we see
- a .stab*str section.
- (Layout::finalize): Call link_stabs_sections.
- (Layout::link_stabs_sections): New file.
- * layout.h (class Layout): Add have_stabstr_section_ field.
- Declare link_stabs_sections.
- 2009-06-23 Doug Kwan <dougkwan@google.com>
- * Makefile.am (libgold_a_LIBADD): New.
- (ld_new_DEPENDENCIES, ld_new_LDADD): Remove LIBOBJS
- * Makefile.in: Regenerate.
- * config.in (HAVE_DECL_MEMMEM, HAVE_DECL_STRNDUP): New.
- * configure: Regenerate.
- * configure.ac (AC_CHECK_DECLS): Add strndup and memmem.
- * fileread.cc: Include sys/state.h
- * gold.h: Declare memmem and strndup if found missing.
- * gold_reloc.h: Include byteswap.h if HAVE_BYTESWAP_H is defined.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- * configure.ac: Call AC_CHECK_DECLS using C, not C++.
- * configure: Rebuild.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- PR 10147
- * object.cc (Object::section_contents): Don't try to get a view if
- the section has length zero.
- (Object::handle_gnu_warning_section): If the section is empty, use
- the name of the section as the warning.
- 2009-06-23 Ian Lance Taylor <iant@google.com>
- PR 10133
- * stringpool.h (class Stringpool_template): Add optimize_ field.
- (Stringpool_template::set_optimize): New function.
- * stringpool.cc (Stringpool_template::Stringpool_template):
- Initialize optimize_ field.
- (Stringpool_template::set_string_offsets): Test local optimize
- fild rather than parameter.
- * layout.cc (Layout::Layout): Call set_optimize on the section
- name stringpool.
- 2009-06-22 Ian Lance Taylor <iant@google.com>
- PR 10030
- * yyscript.y: Parse TARGET.
- * script.cc (script_set_target): New function.
- * script-c.h (script_set_target): Declare.
- * options.cc (General_options::string_to_object_format): Rename
- from string_to_object_format in anonymous namespace. Change
- callers.
- * options.h (class General_options): Declare
- string_to_object_format.
- 2009-06-22 Ian Lance Taylor <iant@google.com>
- * script-sections.cc (Script_sections::create_segments): Don't put
- program headers in a PT_LOAD segment if -n or -N.
- 2009-06-22 Ian Lance Taylor <iant@google.com>
- PR 10141
- * options.h (class General_options): Add -z lazy and -z now. Sort
- -z options into alphabetical order.
- * layout.cc (Layout::finish_dynamic_section): Handle -z now.
- 2009-06-21 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::make_output_section): Call
- Target::new_output_section.
- (Layout::attach_allocated_section_to_segment): Put large section
- sections in a separate load segment with the large segment flag
- set.
- (Layout::segment_precedes): Sort large data segments after other
- load segments.
- (align_file_offset): New static function.
- (Layout::set_segment_offsets): Use align_file_offset.
- * output.h (class Output_section): Add is_small_section_ and
- is_large_section_ fields.
- (Output_section::is_small_section): New function.
- (Output_section::set_is_small_section): New function.
- (Output_section::is_large_section): New function.
- (Output_section::set_is_large_section): New function.
- (Output_section::is_large_data_section): New function.
- (class Output_segment): Add is_large_data_segment_ field.
- (Output_segment::is_large_data_segment): New function.
- (Output_segment::set_is_large_data_segment): New function.
- * output.cc (Output_section::Output_section): Initialize new
- fields.
- (Output_segment::Output_segment): Likewise.
- (Output_segment::add_output_section): Add assertion that large
- data sections always go in large data segments. Force small data
- sections to the end of the list of data sections. Force small BSS
- sections to the start of the list of BSS sections. For large BSS
- sections to the end of the list of BSS sections.
- * symtab.h (class Symbol): Declare is_common_shndx.
- (Symbol::is_defined): Check Symbol::is_common_shndx.
- (Symbol::is_common): Likewise.
- (class Symbol_table): Define enum Commons_section_type. Update
- declarations. Add small_commons_ and large_commons_ fields.
- * symtab.cc (Symbol::is_common_shndx): New function.
- (Symbol_table::Symbol_table): Initialize new fields.
- (Symbol_table::add_from_object): Put small and large common
- symbols in the right list.
- (Symbol_table::sized_finalized_symbol): Check
- Symbol::is_common_shndx.
- (Symbol_table::sized_write_globals): Likewise.
- * common.cc (Symbol_table::do_allocate_commons): Allocate new
- common symbol lists. Don't call do_allocate_commons_list if the
- list is empty.
- (Symbol_table::do_allocate_commons_list): Remove is_tls
- parameter. Add comons_section_type parameter. Change all
- callers. Handle small and large common symbols.
- * object.cc (Sized_relobj::do_finalize_local_symbols): Check
- Symbol::is_common_shndx.
- * resolve.cc (symbol_to_bits): Likewise.
- * target.h (Target::small_common_shndx): New function.
- (Target::small_common_section_flags): New function.
- (Target::large_common_shndx): New function.
- (Target::large_common_section_flags): New function.
- (Target::new_output_section): New function.
- (Target::Target_info): Add small_common_shndx, large_common_shndx,
- small_common_section_flags, and large_common_section_flags
- fields.
- (Target::do_new_output_section): New virtual function.
- * arm.cc (Target_arm::arm_info): Initialize new fields.
- * i386.cc (Target_i386::i386_info): Likewise.
- * powerpc.cc (Target_powerpc::powerpc_info) [all versions]:
- Likewise.
- * sparc.c (Target_sparc::sparc_info) [all versions]: Likewise.
- * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
- (Target_x86_64::do_new_output_section): New function.
- * configure.ac: Define conditional MCMODEL_MEDIUM.
- * testsuite/Makefile.am (check_PROGRAMS): Add large.
- (large_SOURCES, large_CFLAGS, large_DEPENDENCIES): Define.
- (large_LDFLAGS): Define.
- * testsuite/large.c: New file.
- * testsuite/testfile.cc (Target_test::test_target_info):
- Initialize new fields.
- * configure, testsuite/Makefile.in: Rebuild.
- 2009-06-05 Doug Kwan <dougkwan@google.com>
- * Makefile.am (CCFILES): Add target.cc.
- * Makefile.in: Regenerate.
- * i386.cc (class Target_i386): Define new virtual method to
- override do_is_local_label_name in parent.
- * object.cc (Sized_relobj::do_count_local_symbols): Discard
- local symbols if --discard-locals or -X is given.
- * options.h (class General_options): Declare new options
- '--discard-locals' and '-X' for discarding locals.
- * target.h (class Target): Define new methods is_local_label_name.
- Declare new virtual method do_is_local_label_name.
- * target.cc: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add discard_locals_test.
- (check_SCRIPTS): Add discard_locals_test.sh.
- (check_DATA): Add discard_local_tests.syms.
- (discard_locals_test_SOURCES, discard_locals_test_LDFLAGS): Define.
- (discard_local_tests.syms, discard_locals_test.o): New make rules.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/discard_locals_test.c: New file.
- * testsuite/discard_locals_test.sh: Same.
- 2009-06-05 Doug Kwan <dougkwan@google.com>
- * object.cc (Sized_relobj::Sized_relobj): Initialize
- discarded_eh_frame_shndx_ to -1U.
- (Sized_relobj::do_layout): Record index of a discard .eh_frame
- section.
- (Sized_relobj::do_count_local_symbols): Skip local symbols in
- a discarded .eh_frame section.
- (Sized_relobj::do_finalize_local_symbols): Ditto.
- * object.h (class Sized_relobj): Declare new member
- discarded_eh_frame_shndx_.
- * testsuite/Makefile.am (check_PROGRAMS): Add local_labels_test.
- (local_labels_test.o, local_labels_test): New rules.
- * testsuite/Makefile.in: Regenerate.
- 2009-06-04 Doug Kwan <dougkwan@google.com>
- * layout.cc (Layout::section_name_mapping): Add mapping for
- special ARM sections.
- 2009-06-03 Doug Kwan <dougkwan@google.com>
- * arm.cc (utils::sign_extend): Reverse test in gold_assert.
- (utils::has_overflow): Same.
- 2009-06-03 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::section_name_mapping): New array, replacing
- Layout::linkonce_mapping.
- (Layout::section_name_mapping_count): New variable, replacing
- Layout::linkonce_mapping_count.
- (Layout::linkonce_output_name): Remove.
- (Layout::output_section_name): Rewrite.
- * layout.h (class Layout): Rename Linkonce_mapping to
- Section_name_mapping, linkonce_mapping to section_name_mapping,
- linkonce_mapping_count to section_name_mapping_count. Don't
- declare linkonce_output_name.
- 2009-06-03 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (namespace utils): New.
- (Target_arm::reloc_is_non_pic): Define new method.
- (class Arm_relocate_functions): New.
- (Target_arm::Relocate::relocate): Handle relocation types used by
- Android.
- 2009-06-03 Ian Lance Taylor <iant@google.com>
- * arm.cc (Target_arm::scan::global): Use || instead of |.
- 2009-06-02 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Target_arm::Scan::Scan): Initialize
- issued_non_pic_error_.
- (class Target_arm::Scan): Declare new method check_non_pic.
- Define new method symbol_needs_plt_entry.
- Declare new data member issued_non_pic_error_.
- (class Target_arm::Relocate): Declare new method
- should_apply_static_reloc.
- (Target_arm::may_need_copy_reloc): Handle STT_ARM_TFUNC.
- (Target_arm::Scan::check_non_pic): Define new method.
- (Target_arm::Scan::local): Handle a small subset of reloc types used
- by Android.
- (Target_arm::Scan::local): Same.
- (Target_arm::Relocate::should_apply_statci_reloc): Define new method.
- 2009-05-31 Mikolaj Zalewski <mikolajz@google.com>
- * incremental.cc (Incremental_inputs::report_command_line): Filter
- out --incremental-* options.
- 2009-05-29 Doug Kwan <dougkwan@google.com>
- * gold/arm.cc (Output_data_plt_arm): Forward declaration for new
- template class.
- (class Target_arm): Update comment.
- (Target_arm::Target_arm): Initialize new data members GOT_,
- PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_ and DYNBSS_.
- Declare new methods Target_arm::got_section, Target_arm::make_plt_entry
- and Target_arm::rel_dyn_section.
- Declare new_enum Target_arm::Got_type.
- Declare new data members GOT_, PLT_, GOT_PLT_, REL_DYN_, COPY_RELOCS_
- and DYNBSS_.
- Update commments for member do_dynsym_value.
- (Target_arm::got_size, Target_arm::plt_section,
- Target_arm::may_need_copy_reloc and Target_arm::copy_reloc): Define
- new methods inside class defintion.
- (Target_arm::got_section): Define new method.
- (Target_arm::rel_dyn_section): Same.
- (Output_data_plt_arm): New template class.
- (Output_data_plt_arm::Output_data_plt_arm): Define constructor.
- (Output_data_plt_arm:do_adjust_output_section): Define new method.
- (Output_data_plt_arm::add_entry): Same.
- (Output_data_plt_arm::first_plt_entry): Define new
- static data member for PLT instruction template.
- (Output_data_plt_arm::plt_entry): Same.
- (Output_data_plt_arm::do_write): Define new method.
- (Target_arm::make_plt_entry): Same.
- (Target_arm::do_finalize_sections): Same.
- (Target_arm::do_dynsym_value): Same.
- 2009-05-28 Doug Kwan <dougkwan@google.com>
- * Makefile.am (TARGETSOURCES): Add arm.cc.
- (ALL_TARGETOBJECTS): Add arm.$(OBJEXT)
- * Makefile.in: Regenerate.
- * arm.cc: New file.
- * configure.tgt: Add armbe*-*-*, armeb*-*-* and arm*-*-* targets.
- 2009-05-26 Doug Kwan <dougkwan@google.com>
- * options.cc (General_options::parse_exclude_libs). Fix a comment.
- (General_options::check_excluded_libs): Strip off directories in
- archive name before matching like GNU ld does.
- * testsuite/Makefile.am (MOSTLYCLEANFILES,
- exclude_libs_test_DEPENDENCIES): Add alt/libexclude_libs_test_3.a
- (exclude_libs_test_LDFLAGS): Add linker option
- -Wl,--exclude-libs,libexclude_libs_test_3
- (exclude_libs_test_LADD): Add alt/libexclude_libs_test_3.a as
- an explicit archive without using -l.
- (alt/libexclude_libs_test_3.a): New make rule.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/exclude_libs_test.c : Declare lib3_default().
- (main): Call it.
- * exclude_libs_test.sh: Add tests for alt/exclude_libs_test_3.a.
- * exclude_libs_test_3.c: New file.
- 2009-05-26 Nick Clifton <nickc@redhat.com>
- * po/id.po: New Indonesian translation.
- * po/gold.pot: Updated template file.
- 2009-05-22 Sriraman Tallam <tmsriram@google.com>
- * testsuite/Makefile.am: Add -ffunction-sections to compile
- gc_comdat_test files. Add -Wl,--gc-sections to build
- gc_comdat_test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gc_comdat_test.sh: Fix the condition around grep.
- 2009-05-21 Sriraman Tallam <tmsriram@google.com>
- * object.cc (Sized_relobj::map_to_kept_section): Return NULL if the
- kept comdat section was garbage collected.
- * testsuite/Makefile.am: Add test gc_comdat_test.sh.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/gc_comdat_test.sh: New file.
- * testsuite/gc_comdat_test_1.cc: New file.
- * testsuite/gc_comdat_test_2.cc: New file.
- 2009-05-19 Doug Kwan <dougkwan@google.com>
- * archive.cc (Archive::Archive): Move constructor from archive.h
- to here. Initialize no_export_.
- (Archive::get_elf_object_for_member): Set no_export flag of object.
- * archive.h (Archive::Archive): Move constructor body to
- archive.cc.
- (Archive::no_export): New method.
- (Archive::no_export_): New field.
- * object.h (Object::Object): Initialize no_export_ to false.
- (Object::no_export, Object::set_no_export): New methods.
- (Object::no_export_): New field.
- * options.cc (General_options::parse_exclude_libs): New method.
- (General_options::check_excluded_libs) Same.
- * options.h (exclude_libs): New option.
- (General_options::check_excluded_libs): New method declaration.
- (General_options::excluded_libs_): New field.
- * symtab.cc (Symbol_table::add_from_relobj): Hide symbols with
- default or protected visibility if an object has no-export flag set.
- testsuite/Makefile.am (check_PROGRAMS): Add exclude_libs_test.
- (check_SCRIPTS): Add exclude_libs_test.sh.
- (check_DATA): Add exclude_libs_test.syms.
- (MOSTLYCLEANFILES): Add exclude_libs_test.syms,
- libexclude_libs_test_1.a and libexclude_libs_test_2.a.
- (exclude_libs_test_SOURCES, exclude_libs_test_DEPENDENCIES,
- exclude_libs_test_LDFLAGS and exclude_libs_test_LDADD): Define.
- (exclude_libs_test.syms, libexclude_libs_test_1.a,
- libexclude_libs_test_2.a): New rules.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/exclude_libs_test.c: New file.
- * testsuite/exclude_libs_test.sh: Ditto.
- * testsuite/exclude_libs_test_1.c: Ditto.
- * testsuite/exclude_libs_test_2.c: Ditto.
- 2009-05-15 Ian Lance Taylor <iant@google.com>
- * configure.ac: Check for declarations for cases where libiberty.h
- checks HAVE_DECL_xxx.
- * configure, config.in: Rebuild.
- 2009-05-15 Mikolaj Zalewski <mikolajz@google.com>
- * gold.h (Incremental_argument_list): Remove (invalid) forward
- declaration.
- * incremental.cc (Incremental_inputs::report_achive): New method.
- (Incremental_inputs::report_object): New method.
- (Incremental_inputs::report_script): New method.
- (Incremental_inputs::finalize_inputs): New method.
- (Incremental_inputs::finalize): Call finalize_inputs().
- (Incremental_inputs::sized_create_incremental_inputs_section_data):
- Create inputs entries.
- * incremental.h (Incremental_input_type): New enum.
- (Incremental_inputs::Incremental_input): Initialize new fields.
- (Incremental_inputs::report_inputs): New method.
- (Incremental_inputs::report_achive): New method.
- (Incremental_inputs::report_object): New method.
- (Incremental_inputs::report_script): New method.
- (Incremental_inputs::finalize_inputs): New method.
- (Incremental_inputs::Input_info): New struct.
- (Incremental_inputs::Input_info_map): New typedef.
- (Incremental_inputs::lock_): New field.
- (Incremental_inputs::Inputs_): New field.
- (Incremental_inputs::Inputs_map): New field.
- * main.cc (main): Call Incremental_input::report_inputs.
- * options.h (Input_argument_list): Typedef moved from
- Input_arguments.
- (Input_file_group::Files): Remove, use ::Input_argument_list.
- (Input_file_group::Input_argument_list): Remove, use
- ::Input_argument_list.
- * plugin.cc (Plugin_manager::add_input_file): Add error in
- incremental build.
- * read_syms.cc (do_read_syms): Call Incremental_input::report_*
- functions.
- * script.cc (read_input_script): Call
- Incremental_input::report_script.
- * script.h (Script_info): New class.
- 2009-04-27 Ian Lance Taylor <iant@google.com>
- * x86_64.cc (do_adjust_output_section): Set entsize to
- plt_entry_size.
- 2009-04-23 Elliott Hughes <enh@google.com>
- * output.cc (Output_file::close): After short writes, continue
- writing from the correct offset in the buffer being written.
- 2009-04-23 Chris Demetriou <cgd@google.com>
- * configure.ac (HAVE_TR1_UNORDERED_MAP_REHASH): New define.
- * configure: Regenerate.
- * config.in: Regenerate.
- * gold.h: Avoid std::tr1::unordered_map and std::tr1::unordered_set
- if HAVE_TR1_UNORDERED_MAP_REHASH is not defined.
- 2009-04-21 Mikolaj Zalewski <mikolajz@google.com>
- * incremental.cc (Incremental_inputs_header_data): Renamed from
- Incremental_input_header_data.
- (Incremental_inputs_header_data::data_size): New field.
- (Incremental_inputs_header_data::put_input_file_count): Renamed
- from input_file_count.
- (Incremental_inputs_header_data::put_command_line_offset): Renamed
- from command_line_offset.
- (Incremental_inputs_header_data::put_reserved): Renamed from
- put_reserved.
- (Incremental_inputs_entry_data): Renamed from
- Incremental_input_entry_data.
- (Incremental_inputs_entry_data::data_size): New field.
- (Incremental_inputs::report_command_line): New method.
- (Incremental_inputs::finalize): New method.
- (Incremental_inputs::create_incremental_inputs_data): New method.
- (Incremental_inputs::sized_create_incremental_inputs_data): New method.
- * incremental.h: New file.
- * layout.cc (Layout::Layout): Handle new incremental_inputs_.
- (Layout::finalize): Create incremental inputs section in
- incremental builds.
- (Layout::create_incremental_info_sections): New method.
- * layout.h (Layout::incremental_inputs): New method.
- (Layout::create_incremental_info_sections): New method.
- (Layout::incremental_inputs_): New field.
- * main.cc (main): Notify Incremental_input of the command line.
- 2009-04-01 Ian Lance Taylor <iant@google.com>
- Mikolaj Zalewski <mikolajz@google.com>
- * gold.h (reserve_unordered_map): Define, three versions, one for
- each version of Unordered_map.
- * layout.cc (Layout::Layout): Remove options parameter. Add
- number_of_input_files parameter. Don't initialize options_.
- Initialize number_of_input_files_ and resized_signatures_. Move
- sections_are_attached_.
- (Layout::layout_group): Reserve space for group_signatures_.
- (Layout::find_or_add_kept_section): Change name parameter to be a
- reference. Resize signatures_ map when it gets large enough.
- (Layout::layout_eh_frame): Use parameters->options() instead of
- this->options_.
- (Layout::make_output_section): Likewise.
- (Layout::attach_allocated_section_to_segment): Likewise.
- (Layout::finalize, Layout::create_executable_stack): Likewise.
- (Layout::set_segment_offsets, Layout::create_interp): Likewise.
- (Layout::finish_dynamic_section, Layout::write_binary): Likewise.
- * layout.h (class Layout): Update declarations. Remove options_
- field. Add number_of_input_files_ and resized_signatures_
- fields. Move sections_are_attached_ field.
- * main.cc (main): Pass number of input files to Layout
- constructor. Don't pass options.
- 2009-03-30 Ian Lance Taylor <iant@google.com>
- * ffsll.c (ffsll): Correct implementation.
- 2009-03-27 Ian Lance Taylor <iant@google.com>
- * ffsll.c: New file.
- * configure.ac: Call AC_REPLACE_FUNCS on ffsll.
- * gold.h (ffsll): Declare if HAVE_FFSLL is not defined.
- * ftruncate.c (ftruncate): Declare before definition.
- * mremap.c (mremap): Likewise.
- * pread.c (pread): Likewise.
- * configure, Makefile.in, config.in: Rebuild.
- * mremap.c: New file.
- * configure.ac: Call AC_REPLACE_FUNCS on mremap.
- * gold.h (MREMAP_MAYMOVE): Define if HAVE_MREMAP is not defined.
- (mremap): Declare if HAVE_MREMAP is not defined.
- * configure, Makefile.in, config.in: Rebuild.
- 2009-03-27 Cary Coutant <ccoutant@google.com>
- * powerpc.cc (Target_powerpc::check_non_pic): Assert that output is
- position independent.
- * sparc.cc (Target_sparc::check_non_pic): Likewise.
- * x86_64.cc (Target_x86_64::check_non_pic): Likewise.
- 2009-03-24 Cary Coutant <ccoutant@google.com>
- * symtab.h (needs_plt_entry): Check for unsatisfied reference from
- an executable.
- (needs_dynamic_reloc): Likewise.
- 2009-03-24 Ian Lance Taylor <iant@google.com>
- * yyscript.y (file_cmd): Recognize EXTERN.
- (extern_name_list, extern_name_list_body): New nonterminals.
- * script.cc (script_add_extern): Define.
- * script-c.h (script_add_extern): Declare.
- 2009-03-24 Rafael Avila de Espindola <espindola@google.com>
- * object.cc (is_elf_object): Define.
- * object.h (is_elf_object): Declare.
- * archive.cc (Archive::get_elf_object_for_member): Call
- is_elf_object.
- * readsyms.cc (Read_symbols::do_read_symbols): Likewise.
- 2009-03-24 Elliott Hughes <enh@google.com>
- * output.cc (Output_file::map_anonymous): Define.
- (Output_file::map): Use map_anonymous. If the regular mmap fails,
- try an anonymous one. Report the size if the mmap fails.
- * output.h (class Output_file): Declare map_anonymous.
- 2009-03-24 Ian Lance Taylor <iant@google.com>
- * target-select.cc (instantiate_target): Don't acquire the lock if
- the instantiated_target_ field has already been set.
- 2009-03-23 Ian Lance Taylor <iant@google.com>
- * gold-threads.h (class Initialize_lock): Define.
- * gold-threads.cc (class Initialize_lock_once): Define.
- (initialize_lock_control): New static variable.
- (initialize_lock_pointer): New static variable.
- (initialize_lock_once): New static function.
- (Initialize_lock::Initialize_lock): Define.
- (Initialize_lock::initialize): Define.
- * target-select.h: Include "gold-threads.h".
- (class Target_selector): Add lock_ and initialize_lock_ fields.
- Don't define instantiate_target, just declare it.
- * target-select.cc (Target_selector::Target_selector): Initialize
- new fields.
- (Target_selector::instantiate_target): Define.
- * descriptors.h: Include "gold-threads.h".
- (class Descriptors): Add initialize_lock_ field.
- * descriptors.cc (Descriptors::Descriptors): Initialize new
- field.
- (Descriptors::open): Use initialize_lock_ field
- * errors.h (class Errors): Add initialize_lock_ field.
- * errors.cc (Errors::Errors): Initialize new field.
- (Errors::initialize_lock): Use initialize_lock_ field.
- * powerpc.cc (class Target_selector_powerpc): Remove
- instantiated_target_ field. In do_recognize call
- instantiate_target rather than do_instantiate_target. In
- do_instantiate_target just allocate a new target.
- * sparc.cc (class Target_selector_sparc): Likewise.
- * freebsd.h: New file.
- * i386.cc: Include "freebsd.h".
- (Target_i386): Derive from Target_freebsd rather than
- Sized_target.
- (Target_selector_i386): Derive from Target_selector_freebsd rather
- than Target_selector.
- * x86_64.cc: Include "freebsd.h".
- (Target_x86_64): Derive from Target_freebsd rather than
- Sized_target.
- (Target_selector_x86_64): Derive from Target_selector_freebsd
- rather than Target_selector.
- * target.h (class Target): Add adjust_elf_header and
- do_adjust_elf_header.
- * output.cc (Output_file_header:: do_sized_write): Call target
- adjust_elf_header routine.
- * configure.tgt: Set targ_osabi.
- * configure.ac: Define GOLD_DEFAULT_OSABI.
- * parameters.cc (Parameters::default_target): Pass
- GOLD_DEFAULT_OSABI to select_target.
- * target-select.h (class Target_selector): Make instantiate_target
- protected rather than private.
- * Makefile.am (HFILES): Add freebsd.h.
- * configure, Makefile.in, config.in: Rebuild.
- * merge.cc (do_add_input_section): Correct pend value. Change
- message about last entry not being null terminated from error to
- warning.
- 2009-03-20 Mikolaj Zalewski <mikolajz@google.com>
- * incremental.cc: New file.
- * Makefile.am (CCFILES): Add incremental.cc.
- * Makefile.in: Rebuild.
- 2009-03-19 Paul Pluzhnikov <ppluzhnikov@google.com>
- * layout.cc (Layout::output_section_name): Preserve names
- of '.note.' sections.
- 2009-03-19 Ian Lance Taylor <iant@google.com>
- * descriptors.cc (Descriptors::open): Check that the options are
- valid before using them.
- 2009-03-18 Ian Lance Taylor <iant@google.com>
- * script-sections.h: Include <list>.
- (class Script_sections): Change Sections_elements from std::vector
- to std::list. Typedef public Elements_iterator. Add
- orphan_section_placement_, data_segment_align_start_, and
- saw_data_segment_align_ fields. Remove data_segment_align_index_
- field.
- * script-sections.cc (class Orphan_section_placement): New class.
- (class Sections_element): Add virtual functions is_relro and
- orphan_section_init. Remove virtual function place_orphan_here.
- (class Output_section_definition): Add is_relro and
- orphan_section_init. Remove place_orphan_here.
- (class Orphan_output_section): Likewise.
- (Script_sections::Script_sections): Update for field changes.
- (Script_sections::data_segment_align): Set saw_data_segment_align_
- and data_segment_align_start_, not data_segment_align_index.
- (Script_sections::data_segment_relro_end): Check
- saw_data_segment_align_. Use data_segment_align_start_ rather
- than data_segment_align_index_.
- (Script_sections::place_orphan): Rewrite to use
- Orphan_section_placement.
- 2009-03-17 Ian Lance Taylor <iant@google.com>
- * archive.cc (Archive::add_symbols): Check for a version attached
- to the symbol name in the archive map.
- * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_11.
- (ver_test_11_SOURCES, ver_test_11_DEPENDENCIES): Define.
- (ver_test_11_LDFLAGS, ver_test_11_LDADD): Define.
- (ver_test_11.a): New target.
- * testsuite/Makefile.in: Rebuild.
- * configure.ac: Check for chsize and posix_fallocate. Replace
- ftruncate.
- * ftruncate.c: New file, from gnulib.
- * output.cc (posix_fallocate): Define dummy version if not
- HAVE_POSIX_FALLOCATE.
- (Output_file::map): Call posix_fallocate rather than lseek and
- write.
- * gold.h (ftruncate): Declare if not HAVE_FTRUNCATE.
- * configure, Makefile.in, config.in: Rebuild.
- 2009-03-17 Paul Pluzhnikov <ppluzhnikov@google.com>
- * layout.h (Layout::create_note): Add section_name parameter.
- * layout.cc (Layout::create_note): Likewise.
- (Layout::create_build_id, Layout::create_gold_note): Fix callers.
- 2009-03-17 Ian Lance Taylor <iant@google.com>
- * descriptors.cc: Include "options.h".
- (FD_CLOEXEC, O_CLOEXEC): Define if not defined.
- (Descriptors::open): Always use O_CLOEXEC when opening a new
- descriptor. If we have a plugin, and O_CLOEXEC was not defined,
- then set FD_CLOEXEC.
- * sparc.cc (class Target_sparc): Add has_got_section.
- (Target_sparc::Scan::global): If we see _GLOBAL_OFFSET_TABLE_,
- make sure we have a GOT section.
- * sparc.cc (optimize_tls_reloc): Recognize R_SPARC_TLS_IE_ADD.
- (Target_sparc::Scan::local): Likewise.
- (Target_sparc::Scan::global): Likewise.
- (Target_sparc::Relocate::relocate): Likewise.
- (Target_sparc::Relocate::relocate_tls): Likewise.
- * symtab.cc (Symbol_table::define_default_version): New function,
- broken out of add_from_object.
- (Symbol_table::add_from_object): Call define_default_version.
- (Symbol_table::define_special_symbol): Add resolve_oldsym
- parameter. Change all callers. If the version for a symbol comes
- from a version script, resolve it with the symbol with the same
- name with no version. Also add the symbol without a version if
- appropriate.
- (do_define_in_output_data): If resolving with oldsym, don't delete
- sym.
- (do_define_in_output_segment): Likewise.
- (do_define_as_constant): Likewise.
- * symtab.h (class Symbol_table): Update declarations.
- 2009-03-13 Ian Lance Taylor <iant@google.com>
- * readsyms.cc (Read_symbols::incompatible_warning): New function.
- (Read_symbols::requeue): New function.
- (Read_symbols::do_read_symbols): If make_elf_object fails because
- the target type is not configured, and the file was searched for,
- issue a warning and retry with the next directory.
- (Add_symbols::run): If the file has an incompatible format, and
- it was searched for, requeue the Read_symbols task. On error,
- release the object.
- * readsyms.h (class Read_symbols): Add dirindex_ field. Add
- dirindex parameter to constructor. Change all callers. Declare
- incompatible_warning and requeue.
- (class Add_symbols): Add dirpath_, dirindex_, mapfile_,
- input_argument_ and input_group_ fields. Add them to
- constructor. Change all callers.
- (class Read_script): Add dirindex_ field. Add it to constructor.
- Change all callers.
- * archive.cc (Archive::setup): Remove input_objects parameter.
- Change all callers.
- (Archive::get_file_and_offset): Likewise.
- (Archive::read_all_symbols): Likewise.
- (Archive::read_symbols): Likewise.
- (Archive::get_elf_object_for_member): Remove input_objects
- parameter. Add punconfigured parameter. Change all callers.
- (Archive::add_symbols): Change return type to bool. Check return
- value of include_member.
- (Archive::include_all_members): Likewise.
- (Archive::include_member): Change return type to bool. Return
- false if first included object has incompatible target. Set
- included_member_ field.
- (Add_archive_symbols::run): If add_symbols returns false, requeue
- Read_symbols task.
- * archive.h (class Archive): Add included_member_ field.
- Initialize it in constructor. Add input_file and searched_for
- methods. Update declarations.
- (class Add_archive_symbols): Add dirpath_, dirindex_, and
- input_argument_ fields. Add them to constructor. Change all
- callers.
- * script.cc: Include "target-select.h".
- (class Parser_closure): Add skip_on_incompatible_target_ and
- found_incompatible_target_ fields. Add
- skip_on_incompatible_target parameter to constructor. Change all
- callers. Add methods skip_on_incompatible_target,
- clear_skip_on_incompatible_target, found_incompatible_target, and
- set_found_incompatible_target.
- (read_input_script): Add dirindex parameter. Change all callers.
- If parser finds an incompatible target, requeue Read_symbols
- task.
- (script_set_symbol): Clear skip_on_incompatible_target in
- closure.
- (script_add_assertion, script_parse_option): Likewise.
- (script_start_sections, script_add_phdr): Likewise.
- (script_check_output_format): New function.
- * script.h (read_input_script): Update declaration.
- * script-c.h (script_check_output_format): Declare.
- * yyscript.y (file_cmd): Handle OUTPUT_FORMAT.
- (ignore_cmd): Remove OUTPUT_FORMAT.
- * fileread.cc (Input_file::Input_file): Add explicit this.
- (Input_file::will_search_for): New function.
- (Input_file::open): Add pindex parameter. Change all callers.
- * fileread.h (class Input_file): Add input_file_argument method.
- Declare will_search_for. Update declarations.
- * object.cc (make_elf_object): Add punconfigured parameter.
- Change all callers.
- * object.h (class Object): Make input_file public. Add
- searched_for method.
- (make_elf_object): Update declaration.
- * dirsearch.cc (Dirsearch::find): Add pindex parameter. Use it to
- restart search.
- * dirsearch.h (class Dirsearch): Update declaration.
- * options.h (class General_options): Add --warn-search-mismatch.
- * parameters.cc (Parameters::is_compatible_target): New function.
- * parameters.h (class Parameters): Declare is_compatible_target.
- * workqueue.cc (Workqueue::add_blocker): New function.
- * workqueue.h (class Workqueue): Declare add_blocker.
- * fileread.cc (Input_file::open): Remove options parameter.
- Change all callers.
- (Input_file::open_binary): Likewise.
- * script.cc (read_input_script): Likewise.
- * readsyms.h (class Read_symbols): Remove options_ field. Remove
- options parameter from constructor. Change all callers.
- (class Read_script): Likewise.
- * fileread.h (class Input_file): Update declarations.
- * script.h (read_input_script): Update declaration.
- 2009-03-10 Nick Clifton <nickc@redhat.com>
- * po/es.po: New Spanish translation.
- 2009-03-06 Cary Coutant <ccoutant@google.com>
- * options.cc (parse_short_option): Keep dash_z from registering itself.
- 2009-03-03 Ian Lance Taylor <iant@google.com>
- PR 9918
- * target-reloc.h (relocate_section): Pass output_section to
- relocate.
- * i386.cc (Target_i386::should_apply_static_reloc): Add
- output_section parameter. Change all callers.
- (Target_i386::Relocate::relocate): Add output_section parameter.
- * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
- * sparc.cc (Target_sparc::Relocate::relocate): Likewise.
- * powerpc.cc (Target_powerpc::Relocate::relocate): Likewise.
- * testsuite/two_file_shared.sh: New script.
- * testsuite/Makefile.am (check_SCRIPTS): Add two_file_shared.sh.
- (check_DATA): Add two_file_shared.dbg.
- (two_file_shared.dbg): New target.
- * testsuite/Makefile.in: Rebuild.
- 2009-03-01 Ian Lance Taylor <iant@google.com>
- * configure.ac: Check for byteswap.h.
- * configure: Rebuild.
- * config.in: Rebuild.
- 2009-03-01 Mikolaj Zalewski <mikolajz@google.com>
- * layout.cc (Layout::find_or_add_kept_section): New function.
- (Layout::add_comdat): Removed.
- * layout.h (struct Kept_section): Move out of class Layout.
- Remove trailing underscores from field names. Add group_sections
- field. Rename group_ field to is_group. Change all uses.
- (class Layout): Declare find_or_add_kept_section, not add_comdat.
- * object.cc (Sized_relobj::Sized_relobj): Don't initialize
- comdat_groups_ field.
- (Sized_relobj::include_section_group): Use
- find_or_add_kept_section and Kept_section::group_sections.
- (Sized_relobj::include_linkonce_section): Likewise.
- * object.cc (class Sized_relobj): Don't define Comdat_group or
- Comdat_group_table. Remove find_comdat_group and
- add_comdat_group. Remove comdat_groups_ field.
- * plugin.cc (include_comdat_group): Use
- Layout::find_or_add_kept_section.
- 2009-02-28 Ian Lance Taylor <iant@google.com>
- * README: --gc-sections and map files are now supported. Document
- some build requirements.
- PR 6992
- * symtab.cc (Symbol_table::sized_write_section_symbol): In a
- relocatable link set the value of the section symbol to zero.
- * object.cc (Sized_relobj::do_finalize_local_symbols): In a
- relocatable link don't include the section address in the local
- symbol value.
- 2009-02-27 Ian Lance Taylor <iant@google.com>
- PR 6811
- * options.h (class Search_directory): Add is_system_directory.
- (class General_options): Declare is_in_system_directory.
- * options.cc (get_relative_sysroot): Make static.
- (get_default_sysroot): Make static.
- (General_optoins::is_in_system_directory): New function.
- * fileread.cc (Input_file::is_in_system_directory): New function.
- * fileread.h (class Input_file): Declare is_in_system_directory.
- * object.h (class Object): Add is_in_system_directory.
- (class Input_objects): Remove system_library_directory_ field.
- * object.cc (Input_objects::add_object): Don't set
- system_library_directory_.
- (input_objects::found_in_system_library_directory): Remove.
- * symtab.cc (Symbol_table::write_globals): Remove input_objects
- parameter. Change all callers.
- (Symbol_table::sized_write_globals): Likewise.
- (Symbol_table::warn_about_undefined_dynobj_symbol): Likewise.
- Call Object::is_in_system_directory.
- * symtab.h (class Symbol_table): Update declarations.
- PR 5990
- * descriptors.h (Open_descriptor): Add is_on_stack field.
- * descriptors.cc (Descriptors::open): If the descriptor is on the
- top of the stack, remove it. Initialize is_on_stack field.
- (Descriptors::release): Only add pod to stack if it is not on the
- stack already.
- (Descriptors::close_some_descriptor): Clear stack_next and
- is_on_stack fields.
- PR 7091
- * output.cc (Output_section::find_starting_output_address): Rename
- from starting_output_address; add PADDR parameter; change return
- type.
- * output.h (class Output_section): Declare
- find_starting_output_address instead of starting_output_address.
- * object.cc (Sized_relobj::do_finalize_local_symbols): Handle a
- section symbol for which we can't find a merge section.
- PR 9836
- * symtab.cc (Symbol_table::add_from_object): If the visibility is
- hidden or internal, force the symbol to be local.
- * resolve.cc (Symbol::override_visibility): Define.
- (Symbol::override_base): Use override_visibility.
- (Symbol_table::resolve): Likewise.
- (Symbol::override_base_with_special): Likewise.
- (Symbol_table::override_with_special): If the visibility is hidden
- or internal, force the symbol to be local.
- * symtab.h (class Symbol): Add set_visibility and
- override_visibility.
- * testsuite/ver_test_1.sh: New file.
- * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_1.sh.
- (check_DATA): Add ver_test_1.syms.
- (ver_test_1.syms): New target.
- * testsuite/Makefile.in: Rebuild.
- 2009-02-25 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::choose_output_section): Don't rename sections
- when using a linker script that has a SECTIONS clause.
- * Makefile.in: Regenerate.
- * testsuite/Makefile.am (script_test_5.sh): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/script_test_5.cc: New file.
- * testsuite/script_test_5.sh: New file.
- * testsuite/script_test_5.t: New file.
- 2009-02-13 Rafael Avila de Espindola <espindola@google.com>
- * archive.cc (Archive::include_member): Update calls to add_symbols.
- * dynobj.cc (Sized_dynobj<size, big_endian>::make_version_map): Add
- the Layout argument.
- * dynobj.h (do_add_symbols): Add the Layout argument.
- * object.cc (Sized_relobj<size, big_endian>::do_add_symbols): Add the
- Layout argument.
- * object.h (Object::add_symbols): Add the Layout argument.
- (Object::do_add_symbols): Add the Layout argument.
- (Sized_relobj::do_add_symbols): Add the Layout argument.
- * plugin.cc (Sized_pluginobj<size, big_endian>::do_add_symbols):
- Unify the two versions.
- (Add_plugin_symbols): Remove.
- * plugin.h (Pluginobj::add_symbols, Pluginobj::do_add_symbols): Remove.
- (Sized_pluginobj::do_add_symbols): Unify the two versions.
- (Add_plugin_symbols): Remove.
- * readsyms.cc (Read_symbols::do_read_symbols): Update call to
- Add_symbols. Use Add_symbols instead of Add_plugin_symbols.
- (Add_symbols::run): Make it work with Pulginobj.
- 2009-02-06 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj::do_layout): Make info message start
- with lower case letter.
- 2009-02-06 Mikolaj Zalewski <mikolajz@google.com>
- * binary.cc: Fix file comment.
- * options.h (enum Incremental_disposition): Define.
- (class General_options): Add new options: --incremental,
- --incremental_changed, --incremental_unchanged,
- --incremental_unknown. Add incremental_disposition_ and
- implicit_incremental_ fields.
- (General_options::incremental_disposition): New function.
- (class Position_dependent_options): Add incremental_disposition
- option.
- (Position_dependent_options::copy_from_options): Set incremental
- dispositions.
- * options.cc (General_options::parse_incremental_changed): New
- function.
- (General_options::parse_incremental_unchanged): New function.
- (General_options::parse_incremental_unknown): New function.
- (General_options::General_options): Initialize new fields
- incremental_disposition_ and implicit_incremental_.
- (General_options::finalize): Check for uasge of --incremental-*
- without --incremental.
- 2009-02-06 Chris Demetriou <cgd@google.com>
- * gold.h (gold_undefined_symbol): Change to take only a Symbol
- pointer and to report location as the file name associated with
- the symbol.
- (gold_undefined_symbol_at_location): New function to replace the
- old gold_undefined_symbol functionality.
- * target-reloc.h (relocate_section): Update to use
- gold_undefined_symbol_at_location.
- * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
- Call gold_undefined_symbol function rather than gold_error.
- * errors.h (Errors::undefined_symbol): Take location as a
- string, rather than calculating it from a relocation.
- * errors.cc (Errors::fatal): Print "fatal error:" before the
- formatted message.
- (Errors::error, Errors::error_at_location): Print "error: "
- before the formatted message.
- (Errors::undefined_symbol): Take location as a string, rather
- than calculating it from a relocation.
- (gold_undefined_symbol_at_location): New function akin to
- old gold_undefined_symbol, calculates location from relocation.
- (gold_undefined_symbol): Change to take only a Symbol pointer
- and to report location as the file name associated with the symbol.
- * testsuite/debug_msg.sh: Update for changed error messages.
- * testsuite/undef_symbol.sh: Likewise.
- 2009-02-04 Duncan Sands <baldrick@free.fr>
- PR 9812
- * reduced_debug_output.h
- (Output_reduced_debug_abbrev_section::failed): Use format for
- gold_warning.
- (Output_reduced_debug_info_section::faild): Likewise.
- 2009-01-31 Mikolaj Zalewski <mikolajz@google.com>
- * script.cc (Lazy_demangler): New class.
- (Version_script_info::get_symbol_version_helper): Demangle a
- symbol only once.
- 2009-01-29 Cary Coutant <ccoutant@google.com>
- * i386.cc (Target_i386::Relocate::relocate): Recognize non-PIC calls
- to __tls_get_addr.
- * x86_64.cc (Target_x86_64::Relocate::relocate): Likewise.
- 2009-01-28 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Bump to 1.9.
- * gold.h: Include <cstring> and <stdint.h>.
- * version.cc: Include <cstdio>.
- * object.cc (Sized_relobj::do_layout): Initialize gc_sd to avoid a
- warning.
- * reduced_debug_output.cc (insert_into_vector): Rename from
- Insert_into_vector; change all callers. Use Swap_unaligned to
- avoid aliasing issue; remove union since it is unnecessary.
- 2009-01-27 Sriraman Tallam <tmsriram@google.com>
- * Makefile.am (CCFILES): Add gc.cc.
- (HFILES): Add gc.h.
- * Makefile.in: Regenerate.
- * gold.cc (Gc_runner): New class.
- (queue_initial_tasks): Call garbage collection related tasks
- when corresponding options are invoked.
- (queue_middle_gc_tasks): New function.
- (queue_middle_tasks): Reorder tasks to allow relocs to be read and
- processed early before laying out sections during garbage collection.
- * gold.h (queue_middle_gc_tasks): New function.
- (is_prefix_of): Move from "layout.cc".
- * i386.cc (Target_i386::gc_process_relocs): New function.
- * layout.cc (is_prefix_of): Remove. Move to "gold.h"
- * main.cc (main): Create object of class "Garbage_collection".
- * object.cc (Relobj::copy_symbols_data): New function.
- (Relobj::is_section_name_included): New function.
- (Sized_relobj::do_layout): Allow this function to be called twice
- during garbage collection and defer layout of section during the
- first call.
- * object.h (Relobj::get_symbols_data): New function.
- (Relobj::is_section_name_included): New function.
- (Relobj::copy_symbols_data): New function.
- (Relobj::set_symbols_data): New function.
- (Relobj::get_relocs_data): New function.
- (Relobj::set_relocs_data): New function.
- (Relobj::is_output_section_offset_invalid): New pure virtual function.
- (Relobj::gc_process_relocs): New function.
- (Relobj::do_gc_process_relocs): New pure virtual function.
- (Relobj::sd_): New data member.
- (Sized_relobj::is_output_section_offset_invalid): New function.
- (Sized_relobj::do_gc_process_relocs): New function.
- * options.h (General_options::gc_sections): Modify to not be a no-op.
- (General_options::print_gc_sections): New option.
- * plugin.cc (Plugin_finish::run): Remove function call to
- Plugin_manager::layout_deferred_objects. Move it to "gold.cc".
- * powerpc.cc (Target_powerpc::gc_process_relocs): New function.
- * reloc.cc (Read_relocs::run): Add task to process relocs and
- determine unreferenced sections when doing garbage collection.
- (Gc_process_relocs): New class.
- (Sized_relobj::do_gc_process_relocs): New function.
- (Sized_relobj::do_scan_relocs): Don't try to scan the relocs for
- sections that are garbage collected.
- * reloc.h (Gc_process_relocs): New class.
- * sparc.cc (Target_sparc::gc_process_relocs): New function.
- * symtab.cc (Symbol::should_add_dynsym_entry): Do not add entries for
- symbols whose corresponding sections are garbage collected.
- (Symbol_table::Symbol_table): Add new parameter for the garbage
- collection object.
- (Symbol_table::gc_mark_undef_symbols): New function.
- (Symbol_table::gc_mark_symbol_for_shlib): New function.
- (Symbol_table::gc_mark_dyn_syms): New function.
- (Symbol_table::resolve): Do not treat symbols seen in dynamic objects
- as garbage.
- (Symbol_table::add_from_object): Likewise.
- (Symbol_table::add_from_relobj): When building shared objects, do not
- treat externally visible symbols as garbage.
- (Symbol_table::sized_finalize_symbol): Do not check dynamic symbol
- table information for static and relocatable links.
- * symtab.h (Symbol_table::set_gc): New function.
- (Symbol_table::gc): New function.
- (Symbol_table::gc_mark_undef_symbols): New function.
- (Symbol_table::gc_mark_symbol_for_shlib): New function.
- (Symbol_table::gc_mark_dyn_syms): New function.
- (Symbol_table::gc_): New data member.
- * target.h (Sized_target::gc_process_relocs): New pure virtual
- function.
- * x86_64.cc (Target_x86_64::gc_process_relocs): New function.
- * testsuite/testfile.cc (Target_test::gc_process_relocs): New function.
- 2009-01-20 Chris Faylor <me.sourceware@sourceware.org>
- * options.h (General_options::gc_sections): Define as a no-op for now.
- (General_options::no_keep_memory): Ditto.
- (General_options::Bshareable): Define.
- * options.cc (General_options::finalize): Honor -Bshareable.
- 2009-01-20 Andreas Schwab <schwab@suse.de>
- * powerpc.cc (Powerpc_relocate_functions::rel16_ha): Don't try to
- read the value in the contents, since we don't use it. Use the
- template endianness when writing.
- (Relocate::relocate): Use it for R_PPC_REL16_HA.
- 2009-01-19 Andreas Schwab <schwab@suse.de>
- * configure.tgt (powerpc64-*): Fix targ_obj.
- 2009-01-15 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj::write_local_symbols): Don't write out
- local symbols when stripping all symbols.
- 2009-01-14 Cary Coutant <ccoutant@google.com>
- * output.cc (Output_reloc): Add explicit instantiations.
- 2009-01-14 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::get_elf_object_for_member): Remove call
- to File_read::claim_for_plugin.
- * descriptors.cc (Descriptors::open): Remove reference to
- is_claimed.
- (Descriptors::claim_for_plugin): Remove.
- * descriptors.h (Descriptors::claim_for_plugin): Remove.
- (Descriptors::is_claimed): Remove.
- (claim_descriptor_for_plugin): Remove.
- * fileread.cc (File_read::claim_for_plugin): Remove.
- * fileread.h (File_read::claim_for_plugin): Remove.
- (File_read::descriptor): Reopen descriptor if necessary.
- * plugin.cc (Plugin::load): Add two new APIs to transfer vector.
- (Plugin_manager::all_symbols_read): Add task parameter. Change
- all callers.
- (Plugin_manager::get_input_file): New function.
- (Plugin_manager::release_input_file): New function.
- (Pluginobj::Pluginobj): Add filesize parameter and initialize
- corresponding data member.
- (Sized_pluginobj::Sized_pluginobj): Add filesize parameter
- and pass to base constructor. Change all callers.
- (get_input_file, release_input_file): New functions.
- (make_sized_plugin_object): Add filesize parameter. Change all callers.
- * plugin.h (Plugin_manager::Plugin_manager): Initialize task_ member.
- (Plugin_manager::all_symbols_read): Add task parameter.
- (Plugin_manager::get_input_file): New function.
- (Plugin_manager::release_input_file): New function.
- (Plugin_manager::task_): New data member.
- (Pluginobj::Pluginobj): Add filesize parameter.
- (Pluginobj::filename): New function.
- (Pluginobj::descriptor): New function.
- (Pluginobj::filesize): New function.
- (Pluginobj::filesize_): New data member.
- (Sized_pluginobj::Sized_pluginobj): Add filesize parameter.
- * readsyms.cc (Read_symbols::do_read_symbols): Remove call to
- File_read::claim_for_plugin; use Object::unlock to unlock the file.
- * testsuite/Makefile.am (plugin_test_4): New test case for plugins
- with archive libraries.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test.c (struct sym_info): New type.
- (get_input_file, release_input_file): New static variables.
- (onload): Capture new transfer vector entries.
- (claim_file_hook): Stop reading at end of file according to filesize.
- Factor out parsing of readelf output into separate function.
- (all_symbols_read_hook): Exercise get_input_file and release_input_file
- APIs and get the source file name from the symbol table. Convert
- source file name to corresponding object file name. Print info
- message when adding new input files.
- (parse_readelf_line): New function.
- * testsuite/plugin_test_1.sh: Add checks for new info messages.
- * testsuite/plugin_test_2.sh: Likewise.
- * testsuite/plugin_test_3.sh: Likewise.
- * testsuite/plugin_test_4.sh: New test case.
- 2009-01-07 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Bump to 1.8.
- 2008-12-23 Cary Coutant <ccoutant@google.com>
- * gold.cc (gold_exit): Call plugin cleanup handlers on exit.
- * plugin.cc (Plugin_manager::finish): Rename as
- layout_deferred_objects. Move cleanup to separate function.
- (Plugin_manager::cleanup): New function.
- (Plugin_finish::run): Call layout_deferred_objects and cleanup
- separately.
- * plugin.h (Plugin_manager::finish): Rename as
- layout_deferred_objects.
- (Plugin_manager::cleanup): New function.
- (Plugin_manager::cleanup_done): New field.
- 2008-12-23 Cary Coutant <ccoutant@google.com>
- * plugin.cc (is_visible_from_outside): New function.
- (Pluginobj::get_symbol_resolution_info): Call is_visible_from_outside
- so we don't return "IR only" status for exported symbols or -r links.
- * testsuite/Makefile.am (plugin_test_3): New test case.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test_3.sh: New file.
- 2008-12-22 Cary Coutant <ccoutant@google.com>
- * object.cc (Sized_relobj::layout_section): New function.
- (Sized_relobj::do_layout): Defer layout of input sections until after
- plugin has provided replacement files.
- (Sized_relobj::do_layout_deferred_sections): New function.
- * object.h (Relobj::set_section_offset): Remove virtual keyword.
- (Relobj::layout_deferred_sections): New function.
- (Relobj::do_layout_deferred_sections): New function.
- (Sized_relobj::do_layout_deferred_sections): New function.
- (Sized_relobj::layout_section): New function.
- (Sized_relobj::Deferred_layout): New structure.
- (Sized_relobj::deferred_layout_): New field.
- * plugin.cc (Plugin_manager::finish): Renamed, was cleanup.
- Change all callers. Layout deferred sections.
- (class Plugin_finish): Renamed, was Plugin_cleanup. Change all
- references.
- (Plugin_hook::run): Move code from do_plugin_hook inline.
- (Plugin_hook::do_plugin_hook): Remove.
- * plugin.h (Plugin_manager::Plugin_manager): Add missing initializers.
- (Plugin_manager::finish): Renamed, was cleanup.
- (Plugin_manager::should_defer_layout): New function.
- (Plugin_manager::add_deferred_layout_object): New function.
- (Plugin_manager::Deferred_layout_list): New type.
- (Plugin_manager::deferred_layout_objects_): New field.
- (Plugin_hook::do_plugin_hook): Remove.
- 2008-12-17 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add --no case for
- --export-dynamic.
- 2008-12-16 Cary Coutant <ccoutant@google.com>
- * plugin.cc (Plugin::load): Move LDPT_MESSAGE to front of transfer
- vector.
- (Plugin_manager::claim_file): Create plugin object even if
- plugin did not call the add_symbols callback.
- (Plugin_obj::get_symbol_resolution_info): Guard against plugin
- asking for more symbols than were added.
- * testsuite/Makefile.am (plugin_test_1): Add test case with
- no global symbols.
- (empty.syms): New target.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test.c (claim_file_hook): Add new debug
- message. Don't call add_symbols if no globals.
- (all_symbols_read_hook): Don't provide replacement for empty
- claimed file.
- 2008-12-12 Ian Lance Taylor <iant@google.com>
- * target-reloc.h (Default_scan_relocatable_relocs): Only discard
- r_type == 0 for a local symbol with r_sym == 0.
- (scan_relocatable_relocs): Pass r_sym to
- local_non_section_strategy.
- * reloc.cc (Emit_relocs_strategy::local_non_section_strategy): Add
- r_sym parameter.
- * configure.ac: Update test for TLS descriptors: they are
- supported as of glibc 2.9.
- * configure: Rebuild.
- 2008-12-11 Ian Lance Taylor <iant@google.com>
- PR 7091
- * target-reloc.h (Default_scan_relocatable_relocs): For each
- function, map r_type == 0 to RELOC_DISCARD.
- 2008-12-10 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::add_comdat): Allow COMDAT group from a replacement
- object to override a kept COMDAT group from a plugin object.
- 2008-12-09 Ian Lance Taylor <iant@google.com>
- PR 7088
- * yyscript.y (file_cmd): Handle INPUT.
- * testsuite/initpri1.c: Change all declarations to be full
- prototypes by adding void, to avoid compiler warnings.
- 2008-12-05 Rafael Avila de Espindola <espindola@google.com>
- * options.cc (General_options::parse_plugin_opt): New.
- (General_options::add_plugin): The argument now is just the filename.
- (General_options::add_plugin_option): New.
- * options.h (plugin_opt): New.
- (add_plugin): Change argument name.
- (add_plugin_option): New.
- * plugin.cc (Plugin::load): Don't parse the plugin option.
- * plugin.h (Plugin::Plugin): Rename argument. Init filename_.
- (Plugin::add_option): New.
- (Plugin::args_): Change type.
- (Plugin::filename_): New.
- (Plugin_manager::add_plugin_option): New.
- * testsuite/Makefile.am (plugin_test_1): Use new syntax.
- * testsuite/Makefile.in: Regenerate.
- 2008-12-05 Cary Coutant <ccoutant@google.com>
- * layout.cc (Layout::include_section): Check for SHF_EXCLUDE.
- Handle --strip-lto-sections option.
- * options.h (strip_lto_sections): New option.
- 2008-12-01 Cary Coutant <ccoutant@google.com>
- * plugin.cc (ld_plugin_message): Change format parameter to const.
- Fix mismatch between new[] and delete.
- 2008-11-14 Cary Coutant <ccoutant@google.com>
- * reloc.cc (Sized_relobj::do_read_relocs): Use constant invalid_address
- instead of -1U.
- 2008-11-05 Craig Silverstein <csilvers@google.com>
- * options.cc (General_options::parse_dynamic_list): New function.
- * options.h (General_options): New flags dynamic_list,
- dynamic_list_data, dynamic_list_cpp_new, and
- dynamic_list_cpp_typeinfo. New variable dynamic_list_.
- (General_options::in_dynamic_list): New function.
- * script.cc (Lex::Mode): New enum DYNAMIC_LIST.
- (Lex::can_start_name): Add support for DYNAMIC_LIST mode.
- (Lex::can_continue_name): Likewise.
- (yylex): Likewise.
- (read_script_file): New parameter script_options.
- (read_dynamic_list): New function.
- (Script_options::define_dynamic_list): New function.
- (dynamic_list_keyword_parsecodes): New variable.
- (dynamic_list_keywords): New variable.
- * script.h (Script_options::define_dynamic_list): New function
- prototype.
- (read_dynamic_list): New function prototype.
- * symtab.cc (strprefix): New macro.
- (Symbol::should_add_dynsym_entry): Support dynamic_list,
- dynamic_list_data, dynamic_list_cpp_new, and
- dynamic_list_cpp_typeinfo.
- * yyscript.y (PARSING_DYNAMIC_LIST): New token.
- (dynamic_list_expr): New rule.
- (dynamic_list_nodes): Likewise.
- (dynamic_list_node): Likewise.
- * testsuite/Makefile.am (dynamic_list): New test.
- * testsuite/Makefile.in: Regenerated.
- * testsuite/dynamic_list.t: New file.
- * testsuite/dynamic_list.sh: New file.
- 2008-11-05 Craig Silverstein <csilvers@google.com>
- * testsuite/tls_test_c.c: Add prototype for t11 and t11_last.
- * testsuite/tls_test_c.c (t11): Add explicit "void" to prototype.
- (t11_last): Likewise.
- * testsuite/ver_test_6.c (main): Likewise.
- 2008-10-07 Cary Coutant <ccoutant@google.com>
- * options.c (General_options::finalize): Add check for -static and
- -shared.
- * gold.cc (queue_middle_tasks): Assert that list of dynamic objects
- is not empty.
- 2008-10-02 Cary Coutant <ccoutant@google.com>
- * plugin.cc (make_sized_plugin_object): Fix conditional
- compilation to work when not all targets are enabled.
- 2008-09-29 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::get_file_and_offset): Use filename instead
- of name to get library path.
- (Archive::include_member): Unlock external member of a thin archive.
- * testsuite/Makefile.am (TEST_AR): New variable.
- (thin_archive_test_1): New test.
- (thin_archive_test_2): New test.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/thin_archive_main.cc: New file.
- * testsuite/thin_archive_test_1.cc: New file.
- * testsuite/thin_archive_test_2.cc: New file.
- * testsuite/thin_archive_test_3.cc: New file.
- * testsuite/thin_archive_test_4.cc: New file.
- 2008-09-29 Cary Coutant <ccoutant@google.com>
- * mapfile.cc (Mapfile::print_input_section): Change -1U to -1ULL.
- * object.cc (Sized_relobj::do_layout): Use constant invalid_address
- instead of -1U.
- (Sized_relobj::do_finalize_local_symbols): Likewise.
- (Sized_relobj::map_to_kept_section): Likewise.
- * object.h (Sized_relobj::invalid_address): New constant.
- (Sized_relobj::do_output_section_offset): Check for invalid_address
- and return -1ULL.
- * output.cc (Output_reloc::local_section_offset): Use constant
- invalid_address instead of -1U.
- (Output_reloc::get_address): Likewise.
- (Output_section::output_address): Change -1U to -1ULL.
- * output.h (Output_reloc::invalid_address): New constant.
- * reloc.cc (Sized_relobj::write_sections): Use constant
- invalid_address instead of -1U.
- (Sized_relobj::relocate_sections): Likewise.
- * symtab.cc (Symbol_table::sized_finalize_symbol): Handle symbol
- values for merge sections.
- * target-reloc.h (relocate_for_relocatable): Use constant
- invalid_address instead of -1U.
- 2008-09-19 Cary Coutant <ccoutant@google.com>
- Add plugin functionality for link-time optimization (LTO).
- * configure.ac (plugins): Add --enable-plugins option.
- * configure: Regenerate.
- * config.in: Regenerate.
- * Makefile.am (LIBDL): New variable.
- (CCFILES): Add plugin.cc.
- (HFILES): Add plugin.h.
- (ldadd_var): Add LIBDL.
- * Makefile.in: Regenerate.
- * archive.cc: Include "plugin.h".
- (Archive::setup): Don't preread archive symbols when using a plugin.
- (Archive::get_file_and_offset): Add memsize parameter. Change callers.
- (Archive::get_elf_object_for_member): Call plugin hooks for claiming
- files.
- (Archive::include_member): Add symbols from plugin objects.
- * archive.h (Archive::get_file_and_offset): Add memsize parameter.
- * descriptors.cc (Descriptors::open): Check for file descriptors
- abandoned by plugins.
- (Descriptors::claim_for_plugin): New function.
- * descriptors.h (Descriptors::claim_for_plugin): New function.
- (Open_descriptor::is_claimed): New field.
- (claim_descriptor_for_plugin): New function.
- * fileread.cc (File_read::claim_for_plugin): New function.
- * fileread.h (File_read::claim_for_plugin): New function.
- (File_read::descriptor): New function.
- * gold.cc: Include "plugin.h".
- (queue_initial_tasks): Add task to call plugin hooks for generating
- new object files.
- * main.cc: Include "plugin.h".
- (main): Load plugin libraries.
- * object.h (Pluginobj): Declare.
- (Object::pluginobj): New function.
- (Object::do_pluginobj): New function.
- (Object::set_target): New function.
- * options.cc: Include "plugin.h".
- (General_options::parse_plugin): New function.
- (General_options::General_options): Initialize plugins_ field.
- (General_options::add_plugin): New function.
- * options.h (Plugin_manager): Declare.
- (General_options): Add --plugin option.
- (General_options::has_plugins): New function.
- (General_options::plugins): New function.
- (General_options::add_plugin): New function.
- (General_options::plugins_): New field.
- * plugin.cc: New file.
- * plugin.h: New file.
- * readsyms.cc: Include "plugin.h".
- (Read_symbols::do_read_symbols): Check for archive before checking
- for ELF file. Call plugin hooks to claim files.
- * resolve.cc (Symbol_table::resolve): Record when symbol is referenced
- from a real object file; force override when processing replacement
- files.
- * symtab.cc (Symbol::init_fields): Initialize in_real_elf_ field.
- (Symbol::init_base_object): Likewise.
- (Symbol::init_base_output_data): Likewise.
- (Symbol::init_base_output_segment): Likewise.
- (Symbol::init_base_constant): Likewise.
- (Symbol::init_base_undefined): Likewise.
- (Symbol::output_section): Assert that object is not a plugin.
- (Symbol_table::add_from_pluginobj): New function.
- (Symbol_table::sized_finalize_symbol): Treat symbols from plugins as
- undefined.
- (Symbol_table::sized_write_globals): Likewise.
- (Symbol_table::add_from_pluginobj): Instantiate template.
- * symtab.h (Sized_pluginobj): Declare.
- (Symbol::in_real_elf): New function.
- (Symbol::set_in_real_elf): New function.
- (Symbol::in_real_elf_): New field.
- (Symbol_table::add_from_pluginobj): New function.
- * testsuite/Makefile.am (AM_CFLAGS): New variable.
- (LIBDL): New variable.
- (LDADD): Add LIBDL.
- (check_PROGRAMS): Add plugin_test_1 and plugin_test_2.
- (check_SCRIPTS): Add plugin_test_1.sh and plugin_test_2.sh.
- (check_DATA): Add plugin_test_1.err and plugin_test_2.err.
- (MOSTLYCLEANFILES): Likewise.
- * testsuite/Makefile.in: Regenerate.
- * testsuite/plugin_test.c: New file.
- * testsuite/plugin_test_1.sh: New file.
- * testsuite/plugin_test_2.sh: New file.
- 2008-09-16 Ian Lance Taylor <iant@google.com>
- * target-reloc.h (relocate_section): Check whether a symbol is
- defined by the ABI before reporting an undefined symbol error.
- * target.h (Target::is_defined_by_abi): Make parameter const.
- (Target::do_is_defined_by_abi): Likewise.
- * i386.cc (Target_i386::do_is_defined_by_abi): Likewise.
- * powerpc.cc (Target_powerpc::do_is_defined_by_abi): Likewise.
- * sparc.cc (Target_sparc::do_is_defined_by_abi): Likewise.
- * x86_64.cc (Target_x86_64::do_is_defined_by_abi): Likewise.
- * testsuite/Makefile.am (tls_test_shared.so): Add -Wl,-z,defs.
- * testsuite/Makefile.in: Rebuild.
- * fileread.cc (make_view): Add casts to avoid warning.
- 2008-09-16 Alexandre Oliva <aoliva@redhat.com>
- * i386.cc (Target_i386::define_tls_base_symbol): Update comments.
- * x86_64.cc (Target_x86_64::define_tls_base_symbol): Likewise.
- 2008-09-16 Alexandre Oliva <aoliva@redhat.com>
- * options.h (General_options::output_is_executable): New.
- (General_options::output_is_pie): New.
- * i386.cc (Target_i386::define_tls_base_symbol): Use SEGMENT_START
- for shared libraries.
- * x86_64.cc (Target_x86_64::define_tls_base_symbol): Likewise.
- 2008-09-11 Chris Demetriou <cgd@google.com>
- * options.h (origin): New -z option.
- * layout.cc (Layout:finish_dynamic_section): If "-z origin"
- is specified, set DF_ORIGIN in DT_FLAGS and set DF_1_ORIGIN
- in DT_FLAGS_1.
- 2008-09-05 Cary Coutant <ccoutant@google.com>
- * fileread.cc (File_read::make_view): Add check for attempt to map
- beyond end of file.
- 2008-09-05 Cary Coutant <ccoutant@google.com>
- * symtab.cc (Symbol_table::add_from_dynobj): Fix typos in
- explicit instantiations.
- 2008-08-28 Kris Van Hees <kris.van.hees@oracle.com>
- PR gold/6858
- * options.cc (General_options::finalize): Allow undefined symbols
- in shlibs if linking -shared.
- PR gold/6859
- * symtab.cc (Symbol::init_base_undefined): Mark explicitly undefined
- symbols as not needing a dynsym entry.
- 2008-08-20 Craig Silverstein <csilvers@google.com>
- * fileread.cc (File_read::open): Do not lock the file unless it
- was successfully opened.
- 2008-08-14 Cary Coutant <ccoutant@google.com>
- * x86_64.cc (Target_x86_64::Relocate::relocat_tls):
- Use addend for DTPOFF32, DTPOFF64, and TPOFF32 relocs.
- * testsuite/tls_test.cc (struct int128): 128-bit struct
- for testing TLS relocs with non-zero addend.
- (v12): New TLS variable.
- (t12): New test.
- (t_last): Add check for v12.
- * testsuite/tls_test.h (t12): New function.
- * testsuite/tls_test_main.cc (thread_routine): Call new test.
- 2008-08-13 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::attach_allocated_section_to_segment): Don't
- set tls_segment_ or relro_segment_.
- (Layout::make_output_segment): Set tls_segment_ and relro_segment_
- when appropriate.
- * output.h (Output_section::clear_is_relro): New function.
- * output.cc (Output_segment::add_output_section): Handle SHF_TLS
- sections specially even when output_data_ is empty.
- (Output_segment::maximum_alignment): When first section is relro,
- only force alignment for PT_LOAD segments.
- * script.cc (script_data_segment_align): New function.
- (script_data_segment_relro_end): New function.
- * script-c.h (script_data_segment_align): Declare.
- (script_data_segment_relro_end): Declare.
- * script-sections.h (class Script_sections): Declare
- data_segment_align and data_segment_relro_end. Add fields
- segment_align_index_ and saw_relro_end_.
- * script-sections.cc (class Sections_element): Add set_is_relro
- virtual function. Add new bool* parameter to place_orphan_here.
- Add get_output_section virtual function.
- (class Output_section_definition): Add set_is_relro. Add new
- bool* parameter to place_orphan_here. Add get_output_section.
- Add is_relro_ field.
- (Output_section_definition::Output_section_definition): Initialize
- evaluated_address_, evaluated_load_address, evaluated_addralign_,
- and is_relro_ fields.
- (Output_section_definition::place_orphan_here): Add is_relro
- parameter.
- (Output_section_definition::set_section_addresses): Set relro for
- output section.
- (Output_section_definition::alternate_constraint): Likewise.
- (class Orphan_output_section): Add new bool* parameter to
- place_orphan_here. Add get_output_section.
- (Orphan_output_section::place_orphan_here): Add is_relro
- parameter.
- (Script_sections::Script_sections): Initialize
- data_segment_align_index_ and saw_relro_end_.
- (Script_sections::data_segment_align): New function.
- (Script_sections::data_segment_relro_end): New function.
- (Script_sections::place_orphan): Set or clear is_relro.
- (Script_sections::set_section_addresses): Force alignment of first
- TLS section.
- * yyscript.y (exp): Call script_data_segment_align and
- script_data_segment_relro_end.
- * testsuite/relro_script_test.t: New file.
- * testsuite/relro_test.cc (using_script): Declare.
- (t1, t2): Test using_script.
- * testsuite/Makefile.am (check_PROGRAMS): Add relro_script_test.
- (relro_script_test_SOURCES): Define.
- (relro_script_test_DEPENDENCIES): Define.
- (relro_script_test_LDFLAGS): Define.
- (relro_script_test_LDADD): Define.
- (relro_script_test.so): New target.
- * testsuite/Makefile.in: Rebuild.
- 2008-08-06 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::total_archives, Archive::total_members)
- (Archive::total_members_loaded): New variables.
- (Archive::setup): Add parameter. Add option to preread
- archive symbols.
- (Archive::read_armap): Add counter.
- (Archive::get_file_and_offset): New function.
- (Archive::get_elf_object_for_member): New function.
- (Archive::read_all_symbols): New function.
- (Archive::read_symbols): New function.
- (Archive::add_symbols): Add counters.
- (Archive::include_all_members): Use armap to find members if it's
- already built.
- (Archive::include_member): Skip reading symbols if already read.
- Factored code into Archive::get_file_and_offset and
- Archive::get_elf_object_for_member. Changed call to
- Mapfile::report_include_archive_member.
- (Archive::print_stats): New function.
- * archive.h: Declare Object and Read_symbols_data classes.
- (Archive::Archive): Add initializers for new members.
- (Archive::setup): Add parameter.
- (Archive::print_stats): New function.
- (Archive::total_archives, Archive::total_members)
- (Archive::total_members_loaded): New variables.
- (Archive::get_file_and_offset): New function.
- (Archive::get_elf_object_for_member): New function.
- (Archive::read_all_symbols): New function.
- (Archive::read_symbols): New function.
- (Archive::Archive_member): New class.
- (Archive::members_): New member.
- (Archive::num_members_): New member.
- * main.cc: Include archive.h.
- (main): Call Archive::print_stats.
- * mapfile.cc (Mapfile::report_include_archive_member): Delete
- archive parameter; member_name is now the fully-decorated name.
- * mapfile.h (Mapfile::report_include_archive_member): Likewise.
- * options.h: (General_options): Add --preread-archive-symbols option.
- * readsyms.cc (Read_symbols::do_read_symbols): Change call to
- Archive::setup.
- 2008-08-04 Ian Lance Taylor <iant@google.com>
- * symtab.h (Symbol::use_plt_offset): New function.
- * i386.cc (Relocate::relocate): Call Symbol::use_plt_offset.
- * powerpc.cc (Relocate::relocate): Likewise.
- * sparc.cc (Relocate::relocate): Likewise.
- * x86_64.cc (Relocate::relocate): Likewise.
- * testsuite/weak_plt.sh: New test.
- * testsuite/weak_plt_main.cc: New test.
- * testsuite/weak_plt_shared.cc: New test.
- * testsuite/Makefile.am (check_SCRIPTS): Add weak_plt.sh.
- (check_PROGRAMS): Add weak_plt.
- (check_DATA): Add weak_plt_shared.so.
- (weak_plt_main_pic.o, weak_plt): New targets.
- (weak_plt_shared_pic.o, weak_plt_shared.so): New targets.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/Makefile.am (weak_alias_test_1.so): Depend upon
- gcctestdir/ld.
- (weak_alias_test_2.so, weak_alias_test_4.so): Likewise.
- * testsuite/Makefile.in: Rebuild.
- 2008-08-04 Alan Modra <amodra@bigpond.net.au>
- * Makefile.am (POTFILES.in): Set LC_ALL=C.
- * Makefile.in: Regenerate.
- * po/POTFILES.in: Regenerate.
- 2008-07-29 Ian Lance Taylor <iant@google.com>
- * script.cc (Script_options::finalize_symbols): Finalize SECTIONS
- symbols before other symbols.
- * testsuite/script_test_2.cc (test_addr): Declare.
- (test_addr_alias): Declare.
- (main): Check that test_addr and test_addr_alias have the right
- values.
- * testsuite/script_test_2.t: Define test_addr_alias and
- test_addr.
- 2008-07-24 Ian Lance Taylor <iant@google.com>
- PR 5990
- * descriptors.cc: New file.
- * descriptors.h: New file.
- * gold-threads.h (class Hold_optional_lock): New class.
- * fileread.cc: Include "descriptors.h".
- (File_read::~File_read): Release descriptor rather than closing
- it.
- (File_read::open) [file]: Call open_descriptor rather than open.
- Set is_descriptor_opened_.
- (File_read::open) [memory]: Assert that descriptor is not open.
- (File_read::reopen_descriptor): New function.
- (File_read::release): Release descriptor.
- (File_read::do_read): Make non-const. Reopen descriptor.
- (File_read::read): Make non-const.
- (File_read::make_view): Reopen descriptor.
- (File_read::do_readv): Likewise.
- * fileread.h (class File_read): Add is_descriptor_opened_ field.
- Update declarations.
- * layout.cc: Include "descriptors.h".
- (Layout::create_build_id): Use open_descriptor rather than open.
- * output.cc: Include "descriptors.h".
- (Output_file::open): Use open_descriptor rather than open.
- * archive.cc (Archive::const_iterator): Change Archive to be
- non-const.
- (Archive::begin, Archive::end): Make non-const.
- (Archive::count_members): Likewise.
- * archive.h (class Archive): Update declarations.
- * object.h (Object::read): Make non-const.
- * Makefile.am (CCFILES): Add descriptors.cc.
- (HFILES): Add descriptors.h.
- * Makefile.in: Rebuild.
- PR 6716
- * gold.h: Always include <clocale>. Add Solaris workarounds
- following code in binutils/sysdep.h.
- PR 6048
- * ehframe.cc (Eh_frame::add_ehframe_input_section): Check whether
- this->eh_frame_hdr_ is NULL before using it.
- * dynobj.cc (Versions::Versions): Update comment.
- * dynobj.cc (Versions::Versions): If there is an soname, use it as
- the base version name.
- * stringpool.cc (Stringpool_template::add_with_length): Set key to
- array size plus one.
- (Stringpool_template::set_string_offsets): Subtract one from key
- before using it as an array index.
- (Stringpool_template::get_offset_with_length): Likewise.
- (Stringpool_template::write_to_buffer): Likewise.
- * stringpool.h (Stringpool_template::get_offset_from_key):
- Likewise.
- 2008-07-23 Ian Lance Taylor <iant@google.com>
- PR 6658
- * object.h (Merged_symbol_value::value): Do our best to handle a
- negative addend.
- PR 6647
- * script.cc (Version_script_info::get_versions): Don't add empty
- version tag to return value.
- (Version_script_info::get_symbol_version_helper): Change return
- type to bool. Add pversion parameter. Change all callers.
- (script_register_vers_node): Don't require a non-NULL tag.
- * script.h (class Version_script_info): Update declarations.
- (Version_script_info::get_symbol_version): Change return type to
- bool. Add version parameter. Change all callers.
- * symtab.cc (Sized_symbol::add_from_relobj): Rework version
- handling. Handle an empty version from a version script.
- (Symbol_table::define_special_symbol): Likewise.
- * testsuite/ver_test_10.script: New file.
- * testsuite/ver_test_10.sh: New file.
- * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_10.sh.
- (check_DATA): Add ver_test_10.syms.
- (ver_test_10.syms, ver_test_10.so): New target.
- * testsuite/Makefile.in: Rebuild.
- 2008-07-23 Simon Baldwin <simonb@google.com>
- * symtab.cc (Symbol_table::sized_write_symbol): Only set st_size
- to zero for undefined symbols from dynamic libraries.
- 2008-07-23 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::resolve): Remove version parameter.
- Change all callers.
- * symtab.h (class Symbol_table): Update declaration.
- * testsuite/ver_test_9.cc: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_9.
- (ver_test_9_SOURCES, ver_test_9_DEPENDENCIES): Define.
- (ver_test_9_LDFLAGS, ver_test_9_LDADD): Define.
- (ver_test_9.so, ver_test_9.o): New targets.
- * testsuite/Makefile.in: Rebuild.
- 2008-07-22 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Define --check-sections.
- * layout.cc (Layout::set_segment_offsets): Handle
- --check-sections.
- * options.h (class General_options): Define -n/--nmagic and
- -N/--omagic.
- * options.cc (General_options::finalize): For -n/--nmagic or
- -N/--omagic, set -static.
- * layout.cc (Layout::attach_allocated_section_to_segment): If
- -N/--omagic, don't put read-only and read-write sections in
- different segments.
- (Layout::find_first_load_seg): If -N/--omagic, don't insist on
- finding a read-only segment.
- (Layout::set_segment_offsets): If -N/--omagic or -n/--nmagic,
- don't set the minimum segment alignment to the common page size,
- and don't set the file offset to the address modulo the page size.
- * script-sections.cc (Script_sections::create_segments): If
- -n/--omagic, don't put read-only and read-write sections in
- different segments.
- * cref.cc: New file.
- * cref.h: New file.
- * options.h (class General_options): Add --print-symbol-counts.
- * main.cc (main): Issue defined symbol report if requested.
- * archive.cc (Archive::interpret_header): Make into a const member
- function.
- (Archive::add_symbols): Call Input_objects::archive_start and
- archive_stop.
- (Archive::const_iterator): Define new class.
- (Archive::begin, Archive::end): New functions.
- (Archive::include_all_members): Rewrite to use iterator.
- (Archive::count_members): New function.
- * archive.h (class Archive): Update declarations.
- (Archive::filename): New function.
- * object.cc: Include "cref.h".
- (Sized_relobj::Sized_relobj): Initialize defined_count_.
- (Sized_relobj::do_get_global_symbol_counts): New function.
- (Input_objects::add_object): Add object to cross-referencer.
- (Input_objects::archive_start): New function.
- (Input_objects::archive_stop): New function.
- (Input_objects::print_symbol_counts): New function.
- * object.h: Declare Cref and Archive.
- (Object::get_global_symbol_counts): New function.
- (Object::do_get_global_symbol_counts): New pure virtual function.
- (class Sized_relobj): Add defined_count_ field. Update
- declarations.
- (class Input_objects): Add cref_ field. Update constructor.
- Update declarations.
- * dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize symbols_ and
- defined_count_.
- (Sized_dynobj::do_add_symbols): Allocate symbols_ if printing
- symbol counts.
- (Sized_dynobj::do_get_global_symbol_counts): New function.
- * dynobj.h (class Sized_dynobj): Add fields symbols_ and
- defined_count_. Update declarations. Define Symbols typedef.
- * symtab.cc (Symbol_table::add_from_relobj): Add defined
- parameter. Change all callers.
- (Symbol_table::add_from_dynobj): Add sympointers and defined
- parameters. Change all callers.
- * symtab.h (class Symbol_table): Update declarations.
- * Makefile.am (CCFILES): Add cref.cc.
- (HFILES): Add cref.h.
- * Makefile.in: Rebuild.
- 2008-07-22 Simon Baldwin <simonb@google.com>
- * symtab.cc (Symbol_table::sized_write_symbol): Set symbol size
- to zero when writing undefined symbols.
- 2008-07-22 Ian Lance Taylor <iant@google.com>
- * output.cc (Output_section::add_input_section): Don't try to
- merge empty merge sections.
- 2008-07-21 Craig Silverstein <csilvers@google.com>
- * symtab.cc (Symbol_table::warn_about_undefined_dynobj_symbol):
- Include symbol version in error message.
- 2008-07-20 Chris Demetriou <cgd@google.com>
- * configure.ac (gold_cv_c_random_seed): New configured variable.
- (RANDOM_SEED_CFLAGS): New substituted variable.
- * Makefile.am (AM_CFLAGS, AM_CXXFLAGS): Add $(RANDOM_SEED_CFLAGS).
- * configure: Rebuild.
- * Makefile.in: Likewise.
- * testsuite/Makefile.in: Likewise.
- 2008-07-18 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::add_from_object): Rewrite the case
- where we see NAME/NULL and NAME/VERSION as separate symbols.
- * testsuite/ver_test_main.cc (main): Call t4.
- (t4, t4_2a): Define.
- * testsuite/ver_test_2.cc (t4_2): Define.
- * testsuite/ver_test_2.script: Put t4_2a in VER2.
- * testsuite/ver_test_4.cc (t4_2a): Define.
- * testsuite/ver_test_4.script: Put t4_2a in VER2.
- * testsuite/ver_test.h (t4, t4_2, t4_2a): Declare.
- 2008-07-17 Ian Lance Taylor <iant@google.com>
- * dynobj.cc (Versions::add_def): If we give an error about a
- missing version, go ahead and create the version anyhow.
- 2008-07-10 Ian Lance Taylor <iant@google.com>
- Handle output sections with more than 0x7fffffff bytes.
- * object.h (class Relobj): Change map_to_output_ to
- output_sections_, and just keep a section pointer. Change all
- uses. Move comdat group support to Sized_relobj.
- (Relobj::is_section_specially_mapped): Remove.
- (Relobj::output_section): Remove poff parameter. Change all
- callers.
- (Relobj::output_section_offset): New function.
- (Relobj::set_section_offset): Rewrite.
- (Relobj::map_to_output): Remove.
- (Relobj::output_sections): New function.
- (Relobj::do_output_section_offset): New pure virtual function.
- (Relobj::do_set_section_offset): Likewise.
- (class Sized_relobj): Add section_offsets_ field. Add comdat
- group support from Relobj. Update declarations.
- (Sized_relobj::get_output_section_offset): New function.
- (Sized_relobj::do_output_section_offset): New function.
- (Sized_relobj::do_set_section_offset): New function.
- * object.cc (Relobj::output_section_address): Remove.
- (Sized_relobj::Sized_relobj): Initialize new fields.
- (Sized_relobj::include_section_group): Cast find_kept_object to
- Sized_relobj.
- (Sized_relobj::include_linkonce_section): Likewise.
- (Sized_relobj::do_layout): Use separate arrays for output section
- and output offset.
- (Sized_relobj::do_count_local_symbols): Change map_to_output to
- output_sections.
- (Sized_relobj::do_finalize_local_symbols): Change map_to_output to
- output_sections and section_offsets.
- (Sized_relobj::write_local_symbols): Likewise.
- (map_to_kept_section): Compute output address directly.
- * reloc.cc (Sized_relobj::do_read_relocs): Change map_to_output to
- output_sections and section_offsets.
- (Sized_relobj::write_sections): Likewise.
- (Sized_relobj::relocate_sections): Likewise.
- * symtab.cc (sized_finalize_symbol): Use output_section_offset.
- * output.h (class Output_reloc): Update declarations. Change
- u2_.relobj to Sized_relobj*.
- (class Output_data_reloc): Change add functions to use
- Sized_relobj*.
- * output.cc (Output_reloc::Output_reloc): Change relobj to
- Sized_relobj*.
- (Output_reloc::local_section_offset): Change return type to
- Elf_Addr. Use get_output_section_offset.
- (Output_reloc::get_address): Likewise.
- (Output_section::is_input_address_mapped): Don't call
- is_section_specially_mapped.
- (Output_section::output_offset): Likewise.
- (Output_section::output_address): Likewise.
- (Output_section::starting_output_address): Likewise.
- * copy-relocs.cc (Copy_relocs::copy_reloc): Change object
- parameter to Sized_relobj*.
- (Copy_relocs::need_copy_reloc): Likewise.
- (Copy_relocs::save): Likewise.
- * copy-relocs.h (class Copy_relocs): Update declarations.
- (class Copy_relocs::Copy_reloc_entry): Change constructor to use
- Sized_relobj*. Change relobj_ field to Sized_relobj*.
- * target-reloc.h (relocate_for_relocatable): Change
- offset_in_output_section type to Elf_Addr. Change code that uses
- it as well.
- * layout.cc (Layout::layout): Always set *off.
- * mapfile.cc (Mapfile::print_input_section): Use
- output_section_offset.
- * i386.cc (Target_i386::copy_reloc): Change object parameter to
- Sized_relobj*.
- * powerpc.cc (Target_powerpc::copy_reloc): Likewise.
- * sparc.cc (Target_sparc::copy_reloc): Likewise.
- * x86_64.cc (Target_x86_64::copy_reloc): Likewise.
- 2008-07-03 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::include_section): Do not discard unrecognized
- SHT_STRTAB sections.
- 2008-06-30 Craig Silverstein <csilvers@cs.stanford.edu>
- * script.cc (Lex::can_continue_name): Make '?' allowable in
- version-script names.
- * testsuite/version_script.map: Change glob pattern to use '?'
- 2008-06-30 Manish Singh <yosh@gimp.org>
- PR 6585
- * symtab.cc (Symbol_table::add_undefined_symbols_from_command_line):
- Correct typo.
- 2008-06-30 Ian Lance Taylor <iant@google.com>
- PR 6660
- PR 6682
- * powerpc.cc (Powerpc_relocate_functions::addr16_ha) [both
- versions]: Don't try to read the value in the contents, since we
- don't use it. Use the template endianness when writing.
- 2008-06-25 Cary Coutant <ccoutant@google.com>
- * fileread.cc (File_read::make_view): Assert on zero-length view.
- * object.cc (Sized_relobj::do_read_symbols): Don't try to read
- symbol table when there are no symbols to read.
- 2008-06-23 Craig Silverstein <csilvers@google.com>
- * version.cc (version_string): Bump to 1.7
- 2008-06-18 Craig Silverstein <csilvers@google.com>
- * powerpc.cc (Powerpc_relocate_functions::addr16_ha): cast
- constant 0xFFFF to type Valtype.
- (Powerpc_relocate_functions::rel16_ha): Likewise.
- 2008-06-17 Ian Lance Taylor <iant@google.com>
- * output.h (Output_section::Input_section): Initialize p2align_ to
- zero for Output_section_data constructors.
- (Output_section::Input_section::addralign): If not an input
- section, return the alignment of the Output_section_data.
- * testsuite/copy_test.cc: New file.
- * testsuite/copy_test_1.cc: New file.
- * testsuite/copy_test_2.cc: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add copy_test.
- (copy_test_SOURCES, copy_test_DEPENDENCIES): New variables.
- (copy_test_LDFLAGS, copy_test_LDADD): New variables.
- (copy_test_1_pic.o, copy_test_1.so): New targets.
- (copy_test_2_pic.o, copy_test_2.so): New targets.
- * testsuite/Makefile.in: Rebuild.
- * script-sections.cc (Script_sections::place_orphan): Initialize
- local variable exact.
- 2008-06-13 David Edelsohn <edelsohn@gnu.org>
- * powerpc.cc (Output_data_plt_powerpc::do_write): 8 + 4 = 0xC.
- 2008-06-12 David Edelsohn <edelsohn@gnu.org>
- David S. Miller <davem@davemloft.net>
- * powerpc.cc: New file.
- * Makefile.am (TARGETSOURCES): Add powerpc.cc
- (ALL_TARGETOBJS): Add powerpc.$(OBJEXT)
- * configure.tgt: Add entries for powerpc-* and powerpc64-*.
- * Makefile.in: Rebuild.
- 2008-06-09 Ian Lance Taylor <iant@google.com>
- * testsuite/relro_test.cc: Include <cstdio>, <cstdlib>, and
- <exception>.
- (throwing, orig_terminate): New static variables.
- (terminate_handler): New static function.
- (t2): Set terminate handler.
- 2008-06-05 Kris Van Hees <kris.van.hees@oracle.com>
- PR 6584
- * binary.cc (Binary_to_elf::sized_convert): Fix .data
- alignment.
- 2008-05-30 Cary Coutant <ccoutant@google.com>
- * archive.cc (Archive::include_all_members) Correct to step
- over symbol table and extended name table in thin archives.
- 2008-05-29 Kris Van Hees <kris.van.hees@oracle.com>
- PR 6407
- * target-reloc.h (relocate_for_relocatable): Fix new_offset
- calculation.
- 2008-05-28 Caleb Howe <cshowe@google.com>
- * reduced_debug_output.cc: New file.
- * reduced_debug_output.h: New file.
- * options.h (class General_options): Add --strip-debug-non-line.
- * options.cc (General_options::finalize): Add strip_debug_non_line
- to the strip heirarchy.
- * layout.h (class Layout): Add debug_abbrev_ and debug_info_
- fields.
- * layout.cc: Include "reduced_debug_output.h".
- (Layout::Layout): Initialize new fields.
- (line_only_debug_sections): New static array.
- (is_lines_only_debug_sections): New static inline function.
- (Layout::include_section): Handle --strip-debug-non-line.
- (Layout::make_output_section): If --strip-debug-non-line, build
- new output sections for .debug_abbrev and .debug_info.
- * dwarf_reader.cc (read_unsigned_LEB_128): Move to namespace
- gold. Warn about possible overflow.
- (read_signed_LEB_128): Likewise.
- * dwarf_reader.h: (read_unsigned_LEB_128): Declare.
- (read_signed_LEB_128): Declare.
- * Makefile.am (CCFILES): Add reduced_debug_output.cc.
- (HFILES): Add reduced_debug_output.h.
- * Makefile.in: Rebuild.
- 2008-05-21 Ian Lance Taylor <iant@google.com>
- * mapfile.cc: New file.
- * mapfile.h: New file.
- * options.h (class General_options): Add -M/--print-map and -Map.
- * options.cc (General_options::finalize): Make -M equivalent to
- -Map -.
- * main.cc: Include <cstdio> and "mapfile.h".
- (main): Open mapfile if requested.
- * gold.cc (class Middle_runner): Add mapfile_ field. Update
- constructor. Change caller.
- (queue_initial_tasks): Add mapfile parameter. Change caller.
- (queue_middle_tasks): Likewise.
- * gold.h (queue_initial_tasks, queue_middle_tasks): Update
- declarations.
- * archive.cc: Include "mapfile.h".
- (Archive::add_symbols): Add mapfile parameter. Change all
- callers. Pass mapfile, symbol, and reason to include_member.
- (Archive::include_all_members): Add mapfile parameter. Change all
- callers.
- (Archive::include_member): Add mapfile, sym, and why parameters.
- Change all callers. Report inclusion to map file.
- * archive.h: Include "fileread.h".
- (class Archive): Update declarations.
- (Archive::file): New const method.
- (class Add_archive_symbols): Add mapfile_ field. Update
- constructor. Change all callers.
- * readsyms.h (class Read_symbols): Likewise.
- (class Finish_group): Likewise.
- (class Read_script): Likewise.
- * common.cc: Include "mapfile.h".
- (Symbol_table::allocate_commons): Add mapfile parameter. Change
- all callers.
- (Symbol_table::do_allocate_commons): Likewise.
- (Symbol_table::do_allocate_commons_list): Likewise. Report common
- symbol allocation to mapfile.
- * common.h (class Allocate_commons_task): Add mapfile_ field.
- Update constructor. Change all callers.
- * symtab.h (class Symbol_table): Update declarations.
- * layout.cc: Include "mapfile.h".
- (Layout_task_runner::run): Print information to mapfile.
- (Layout::create_gold_note): Change Output_data_fixed_space to
- Output_data_zero_fill.
- (Layout::create_build_id): Likewise.
- (Layout::print_to_mapfile): New function.
- * layout.h (class Layout_task_runner): Add mapfile_ field. Update
- constructor. Change caller.
- (class Layout): Declare print_to_mapfile.
- * output.cc (Output_section::Input_section::print_to_mapfile): New
- function.
- (Output_section::add_input_section): If producing a map, always
- add to input_sections_ list.
- (Output_section::do_print_to_mapfile): New function.
- (Output_segment::print_sections_to_mapfile): New function.
- (Output_segment::print_section_list_to_mapfile): New function.
- * output.h: Include "mapfile.h".
- (Output_data::print_to_mapfile): New function.
- (Output_data::do_print_to_mapfile): New virtual function.
- (Output_segment_headers::do_print_to_mapfile): New function.
- (Output_file_header::do_print_to_mapfile): New function.
- (Output_data_const::do_print_to_mapfile): New function.
- (class Output_data_const_buffer): Add map_name_ field. Update
- constructor. Change all callers. Add do_print_to_mapfile
- function.
- (class Output_data_fixed_space): Likewise.
- (class Output_data_space): Likewise.
- (class Output_data_zero_fill): New class.
- (Output_data_strtab::do_print_to_mapfile): New function.
- (Output_data_reloc_base::do_print_to_mapfile): New function.
- (Output_relocatable_relocs::do_print_to_mapfile): New function.
- (Output_data_group::do_print_to_mapfile): New function.
- (Output_data_got::do_print_to_mapfile): New function.
- (Output_data_dynamic::do_print_to_mapfile): New function.
- (Output_symtab_xindex::do_print_to_mapfile): New function.
- (class Output_section): Declare do_print_to_mapflie. Declare
- print_to_mapfile in Input_section.
- (class Output_segment): Declare new functions.
- * object.h (Sized_relobj::symbol_count): New function.
- * script-sections.cc
- (Output_section_element_dot_assignment::set_section_addresses):
- Change Output_data_fixed_space to Output_data_zero_fill.
- (Output_data_expression::do_print_to_mapfile): New function.
- * script.cc (read_input_script): Add mapfile parameter. Change
- all callers.
- * script.h (read_input_script): Update declaration.
- * ehframe.h (Eh_frame_hdr::do_print_to_mapfile): New function.
- (Eh_frame::do_print_to_mapfile): New function.
- * merge.h (Output_merge_data::do_print_to_mapfile): New function.
- (Output_merge_string::do_print_to_mapfile): New function.
- * i386.cc (Output_data_plt_i386::do_print_to_mapfile): New
- function.
- * sparc.cc (Output_data_plt_sparc::do_print_to_mapfile): New
- function.
- * x86_64.cc (Output_data_plt_x86_64::do_print_to_mapfile): New
- function.
- * Makefile.am (CCFILES): Add mapfile.cc.
- (HFILES): Add mapfile.h.
- * Makefile.in: Rebuild.
- 2008-05-19 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add -z relro.
- * layout.cc (Layout::Layout): Initialize relro_segment_.
- (Layout::add_output_section_data): Return the output section.
- (Layout::make_output_section): Rcognize relro sections and mark
- them appropriately.
- (Layout::attach_allocated_section_to_segment): Put relro sections
- in a PT_GNU_RELRO segment.
- (Layout::create_initial_dynamic_sections): Mark the .dynamic
- section as relro.
- (Layout::segment_precedes): Sort PT_GNU_RELRO segments after
- PT_TLS segments.
- (Layout::linkonce_mapping): Map d.rel.ro.local to
- .data.rel.ro.local.
- (Layout::output_section_name): Us .data.rel.ro.local for any
- section which begins with that.
- * layout.h (class Layout): Update add_output_section_data
- declaration. Add relro_segment_ field.
- * output.cc (Output_section::Output_section): Initialize is_relro_
- and is_relro_local_ fields.
- (Output_segment::add_output_section): Group relro sections.
- (Output_segment::is_first_section_relro): New function.
- (Output_segment::maximum_alignment): If there is a relro section,
- align the segment to the common page size.
- (Output_segment::set_section_addresses): Track whether we are
- looking at relro sections. If the last section is a relro
- section, align to the common page size.
- (Output_segment::set_section_list_addresses): Add in_relro
- parameter. Change all callers. Align to the page size when
- moving from relro to non-relro section.
- (Output_segment::set_offset): Align memsz of a PT_GNU_RELRO
- segment.
- * output.h (class Output_section): Add is_relro_ and
- is_relro_local_ fields.
- (Output_section::is_relro): New function.
- (Output_section::set_is_relro): New function.
- (Output_section::is_relro_local): New function.
- (Output_section::set_is_relro_local): New function.
- (class Output_segment): Update declarations.
- * i386.cc (Target_i386::got_section): Mark .got section as relro.
- * sparc.cc (Target_sparc::got_section): Likewise.
- * x86_64.cc (Target_x86_64::got_section): Likewise.
- * testsuite/relro_test_main.cc: New file.
- * testsuite/relro_test.cc: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add relro_test.
- (relro_test_SOURCES, relro_test_DEPENDENCIES): New variables.
- (relro_test_LDFLAGS, relro_test_LDADD): New variables.
- (relro_test.so, relro_test_pic.o): New targets.
- * testsuite/Makefile.in: Rebuild.
- 2008-05-16 Ian Lance Taylor <iant@google.com>
- * output.cc (Output_segment::add_output_section): Remove front
- parameter.
- * output.h (class Output_segment): Remove
- add_initial_output_section and overloaded add_output_section.
- Update declaration of remaining add_output_section.
- * layout.cc (Layout::create_interp): Call add_output_section
- rather than add_initial_output_section.
- (Layout::finish_dynamic_section): Likewise.
- * i386.cc (Target_i386::Relocate::relocate_tls): Set dynamic type
- for TLS_GOTDESC and TLS_DESC_CALL. Only optimize TLS_LDO_32 if we
- know the dynamic type.
- * x86_64.cc (Target_x86_64::Relocate): Add saw_tls_block_reloc_
- field. Initialize it in constructor.
- (Target_x86_64::Relocate::relocate_tls): Record that we saw a TLS
- block reloc for TLSGD, GOTPC32_TLSDESC, TLSDESC_CALL, and TLSLD.
- Only optimize DTPOFF32 and DTPOFF64 if we have seen a TLS block
- reloc.
- * output.cc (Output_reloc::get_address): Change return type to
- Elf_Addr.
- * output.h (class Output_reloc): Update get_address declaration.
- * x86_64.cc (Output_data_plt_x86_64::do_write): Use 64-bit types
- for section addresses.
- 2008-05-09 Ian Lance Taylor <iant@google.com>
- PR 6493
- * gold.cc (gold_nomem): Use return value of write.
- 2008-05-08 Ian Lance Taylor <iant@google.com>
- * symtab.c (Symbol::init_base_output_data): Add version
- parameter. Change all callers.
- (Symbol::init_base_output_segment): Likewise.
- (Symbol::init_base_constant): Likewise.
- (Symbol::init_base_undefined): Likewise.
- (Sized_symbol::init_output_data): Likewise.
- (Sized_symbol::init_output_segment): Likewise.
- (Sized_symbol::init_constant): Likewise.
- (Sized_symbol::init_undefined): Likewise.
- (Symbol_table::do_define_in_output_data): If the new symbol has a
- version, mark it as the default.
- (Symbol_table::do_define_in_output_segment): Likewise.
- (Symbol_table::do_define_as_constant): Likewise.
- * symtab.h (class Symbol): Update declarations.
- (class Sized_symbol): Likewise.
- * resolve.cc (Symbol::override_version): New function.
- (Symbol::override_base): Call override_version.
- (Symbol::override_base_with_special): Likewise.
- * testsuite/ver_script_8.script: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_8.
- (ver_test_8_SOURCES, ver_test_8_DEPENDENCIES): Define.
- (ver_test_8_LDFLAGS, ver_test_8_LDADD): Define.
- (ver_test_8_1.so, ver_test_8_2.so): New targets.
- 2008-05-06 Ian Lance Taylor <iant@google.com>
- PR 6049
- * options.h (DEFINE_set): Add VARNAME_begin and VARNAME_end
- functions.
- (class General_options): Remove existing --undefined, and add
- --no-undefined instead. Add new --undefined as synonym for -u.
- * archive.cc (Archive::add_symbols): Check whether symbol was
- named with -u.
- * gold.cc (queue_middle_tasks): Add -u symbols to symbol table.
- * symtab.h (class Symbol): Rename CONSTANT to IS_CONSTANT; change
- all uses. Add IS_UNDEFINED. Update declarations to split
- different versions of init_base. Declare init_base_undefined.
- (Symbol::is_defined): Handle IS_UNDEFINED.
- (Symbol::is_undefined): Likewise.
- (Symbol::is_weak_undefined): Call is_undefined.
- (Symbol::is_absolute): Handle IS_CONSTANT.
- (class Sized_symbol): Update declarations to split different
- versions of init. Declare init_undefined.
- (class Symbol_table): Declare new functions.
- * symtab.cc (Symbol::init_base_object): Rename from init_base.
- Change all callers.
- (Symbol::init_base_output_data): Likewise.
- (Symbol::init_base_output_segment): Likewise.
- (Symbol::init_base_constant): Likewise.
- (Symbol::init_base_undefined): New function.
- (Sized_symbol::init_object): Rename from init. Change all
- callers.
- (Sized_symbol::init_output_data): Likewise.
- (Sized_symbol::init_output_segment): Likewise.
- (Sized_symbol::init_constant): Likewise.
- (Sized_symbol::init_undefined): New function.
- (Symbol_table::add_undefined_symbols_from_command_line): New
- function.
- (Symbol_table::do_add_undefined_symbols_from_command_line): New
- function.
- (Symbol::final_value_is_known): Handle IS_UNDEFINED.
- (Symbol::output_section): Likewise.
- (Symbol::set_output_section): Likewise.
- (Symbol_table::sized_finalize_symbol): Likewise.
- (Symbol_table::sized_write_globals): Likewise.
- * resolve.cc (Symbol_table::should_override): Likewise.
- (Symbol::override_base_with_special): Likewise.
- * symtab.cc (Symbol_table::add_from_dynobj): If we see a protected
- symbol, change it to have default visibility.
- * testsuite/protected_1.cc: New file.
- * testsuite/protected_2.cc: New file.
- * testsuite/protected_3.cc: New file.
- * testsuite/protected_main_1.cc: New file.
- * testsuite/protected_main_2.cc: New file.
- * testsuite/protected_main_3.cc: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add protected_1.
- (protected_1_SOURCES, protected_1_DEPENDENCIES): Define.
- (protected_1_LDFLAGS, protected_1_LDADD): Define.
- (protected_1.so): New target.
- (protected_1_pic.o, protected_2_pic.o): New targets.
- (protected_3_pic.o): New target.
- (check_PROGRAMS): Add protected_2.
- (protected_2_SOURCES, protected_2_DEPENDENCIES): Define.
- (protected_2_LDFLAGS, protected_2_LDADD): Define.
- * testsuite/Makefile.in: Rebuild.
- * options.h (DEFINE_var): Add set_user_set_##varname__.
- (DEFINE_bool_alias): New macro.
- (class General_options): Define -Bstatic using DEFINE_bool_alias
- rather than DEFINE_special. Add --undefined as an alias for -z
- defs.
- * options.cc (General_options::parse_Bstatic): Remove.
- * options.h (class General_options): Add --fatal-warnings.
- * main.cc (main): Implement --fatal-warnings.
- * errors.h (Errors::warning_count): New function.
- * options.h (class General_options): Add -Bsymbolic-functions.
- * symtab.h (Symbol::is_preemptible): Check for
- -Bsymbolic-functions.
- 2008-05-05 Ian Lance Taylor <iant@google.com>
- * options.h (DEFINE_bool): For DASH_Z, create the negative option
- as noVARNAME rather than no-VARNAME.
- (class General_options): Add option -z combreloc.
- * output.h (class Output_reloc) [SHT_REL]: Declare compare and
- get_address.
- (Output_reloc::sort_before) [SHT_REL]: New function.
- (Output_reloc::sort_before) [SHT_RELA]: New function.
- (class Output_data_reloc_base): Add sort_relocs_ field. Define
- Sort_relocs_comparison.
- (Output_data_reloc_base::Output_data_reloc_base): Add sort_relocs
- parameter. Change all callers.
- (Output_data_reloc::Output_data_reloc) [both versions]: Add
- sort_relocs parameter. Change all callers.
- * output.cc (Output_reloc::get_address): New function, broken out
- of write_rel.
- (Output_reloc::write_rel): Call it.
- (Output_reloc::compare): New function.
- (Output_data_reloc_base::do_write): Optionally sort relocs.
- * configure.ac: If targ_extra_obj is set, link it in.
- * configure.tgt: Initialize all variables.
- (x86_64*): Set targ_extra_obj and targ_extra_size.
- * configure: Rebuild.
- * object.cc (Sized_relobj::include_section_group): Adjust section
- indexes read from group data. Build vector to pass to
- layout_group.
- * layout.cc (Layout::layout_group): Add flags and shndxes
- parameters. Remove contents parameter. Change caller. Update
- explicit instantiations.
- * layout.h (class Layout): Update layout_group declaration.
- * output.cc (Output_data_group::Output_data_group): Add flags and
- input_shndxes parameters. Remove contents parameter. Change
- caller.
- (Output_data_group::do_write): Change input_sections_ to
- input_shndxes_.
- * output.h (class Output_data_group): Update constructor
- declaration. Rename input_sections_ to input_shndxes_.
- * testsuite/many_sections_test.cc: Add template.
- 2008-04-30 Cary Coutant <ccoutant@google.com>
- * target-reloc.h (relocate_section): Fix dead-pointer bug.
- * layout.cc (Layout::include_section): Refactored check for debug
- info section.
- (Layout::add_comdat): Add new parameters. Change type
- of signature parameter. Add object and shndx to signatures table.
- (Layout::find_kept_object): New function.
- * layout.h: Include <cstring>.
- (Layout::is_debug_info_section): New function.
- (Layout::add_comdat): Add new parameters.
- (Layout::find_kept_object): New function.
- (Layout::Kept_section): New struct.
- (Layout::Signatures): Change type of map range.
- * object.cc (Relobj::output_section_address): New function.
- (Sized_relobj::include_section_group): Add new parameters. Change
- calls to Layout::add_comdat. Change to build table of kept comdat
- groups and table mapping discarded sections to kept sections.
- (Sized_relobj::include_linkonce_section): Likewise. Add new parameter.
- (Sized_relobj::do_layout): Change calls to include_section_group and
- include_linkonce_section.
- (Sized_relobj::do_finalize_local_symbols): Do not set local symbol
- value to zero when section is discarded.
- (Sized_relobj::map_to_kept_section): New function.
- * object.h (Relobj::output_section_address): New function.
- (Relobj::Comdat_group): New type.
- (Relobj::find_comdat_group): New function.
- (Relobj::Comdat_group_table): New type.
- (Relobj::Kept_comdat_section): New type.
- (Relobj::Kept_comdat_section_table): New type.
- (Relobj::add_comdat_group): New function.
- (Relobj::set_kept_comdat_section): New function.
- (Relobj::get_kept_comdat_section): New function.
- (Relobj::comdat_groups_): New field.
- (Relobj::kept_comdat_sections_): New field.
- (Symbol_value::input_value): Update comment.
- (Sized_relobj::map_to_kept_section) New function.
- (Sized_relobj::include_linkonce_section): Add new parameter.
- * target-reloc.h (Comdat_behavior): New type.
- (get_comdat_behavior): New function.
- (relocate_section): Add code to map a discarded section to the
- corresponding kept section when applying a relocation.
- 2008-04-30 Craig Silverstein <csilvers@google.com>
- * dwarf_reader.cc (next_generation_count): New static var.
- (Addr2line_cache_entry): New struct.
- (addr2line_cache): New static var.
- (Dwarf_line_info::one_addr2line): Added caching.
- (Dwarf_line_info::clear_addr2line_cache): New function.
- * dwarf_reader.h (Dwarf_line_info::one_addr2line): Add
- cache-size parameter.
- (Dwarf_line_info::one_addr2line_cache): New function.
- * symtab.cc (Symbol_table::detect_odr_violations): Pass
- new cache-size argument to one_addr2line(), and clear cache.
- 2008-04-28 Cary Coutant <ccoutant@google.com>
- * i386.cc (Relocate::relocate): Fix typos for R_386_PC16 and
- R_386_PC8 relocations.
- 2008-04-23 Ian Lance Taylor <iant@google.com>
- * object.cc (Sized_relobj::include_section_group): Check for
- invalid section group.
- * object.cc (make_elf_object): Correct test for 64-bit ELF file
- header size.
- * readsyms.cc (Read_symbols::do_read_symbols): Use get_view rather
- than read for file header.
- * archive.cc (Archive::include_member): Likewise.
- 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
- * aclocal.m4: Regenerate.
- * configure: Regenerate.
- 2008-04-19 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Bump to 1.6.
- * testsuite/Makefile.am (many_sections_r_test): New target.
- (many_sections_r_test_SOURCES): Remove.
- (many_sections_r_test_DEPENDENCIES): Remove.
- (many_sections_r_test_LDFLAGS): Remove.
- (many_sections_r_test_LDADD): Remove.
- * object.cc (Sized_relobj::do_add_symbols): Always pass
- local_symbol_count_ to add_from_relobj.
- * testsuite/Makefile.am (many_sections_check.h): Only check one in
- every thousand variables.
- * testsuite/Makefile.in: Rebuild.
- * object.cc (Xindex::initialize_symtab_xindex): New function.
- (Xindex::read_symtab_xindex): New function.
- (Xindex::sym_xindex_to_shndx): New function.
- (Sized_relobj::find_symtab): Pick up SHT_SYMTAB_SHNDX section if
- available.
- (Sized_relobj::do_initialize_xindex): New function.
- (Sized_relobj::do_read_symbols): Adjust section links.
- (Sized_relobj::symbol_section_and_value): Add is_ordinary
- parameter. Change all callers.
- (Sized_relobj::include_section_group): Adjust section links and
- symbol section indexes.
- (Sized_relobj::do_layout): Adjust section links.
- (Sized_relobj::do_count_local_symbols): Adjust section links and
- symbol section indexes.
- (Sized_relobj::do_finalize_local_symbols): Distinguish between
- ordinary and special symbols.
- (Sized_relobj::write_local_symbols): Add symtab_xindex and
- dynsym_xindex parameters. Change all callers. Adjust section
- links. Use SHN_XINDEX when needed.
- (Sized_relobj::get_symbol_location_info): Adjust section links.
- Don't get fooled by special symbols.
- * object.h (class Xindex): Define.
- (class Object): Add xindex_ parameter. Declare virtual functoin
- do_initialize_xindex.
- (Object::adjust_sym_shndx): New function.
- (Object::set_xindex): New protected function.
- (class Symbol_value): Add is_ordinary_shndx_ field.
- (Symbol_value::Symbol_value): Initialize is_ordinary_shndx_.
- (Symbol_value::value): Assert ordinary section.
- (Symbol_value::initialize_input_to_output_map): Likewise.
- (Symbol_value::set_input_shndx): Add is_ordinary parameter.
- Change all callers.
- (Symbol_value::input_shndx): Add is_ordinary parameter. Change
- all callers.
- (class Sized_relobj): Update declarations.
- (Sized_relobj::local_symbol_input_shndx): Add is_ordinary
- parameter. Change all callers.
- (Sized_relobj::adjust_shndx): New function.
- * dynobj.cc (Sized_dynobj::Sized_dynobj): Initialize dynsym_shndx_
- field.
- (Sized_dynobj::find_dynsym_sections): Remove pdynsym_shndx
- parameter. Change all callers. Pick up SHT_DYNSYM_SHNDX section
- for SHT_DYNSYM section if available. Set dynsym_shndx_ field.
- (Sized_dynobj::read_dynsym_section): Adjust section links.
- (Sized_dynobj::read_dynamic): Likewise.
- (Sized_dynobj::do_read_symbols): Use dynsym_shndx_ field. Adjust
- section links.
- (Sized_dynobj::do_initialize_xindex): New function.
- * dynobj.h (class Sized_dynobj): Add dynsym_shndx_ field. Declare
- do_initialize_xindex.
- (Sized_dynobj::adjust_shndx): New function.
- * layout.cc (Layout::Layout): Initialize symtab_xindex_ and
- dynsym_xindex_ fields.
- (Layout::finalize): Add a call to set_section_indexes before
- creating the symtab sections.
- (Layout::set_section_indexes): Don't do anything if the section
- already has a section index.
- (Layout::create_symtab_sections): Add shnum parameter. Change
- caller. Create .symtab_shndx section if needed.
- (Layout::create_shdrs): Add shstrtab_section parameter. Change
- caller.
- (Layout::allocated_output_section_count): New function.
- (Layout::create_dynamic_symtab): Create .dynsym_shndx section if
- needed.
- * layout.h (class Layout): Add symtab_xindex_ and dynsym_xindex_
- fields. Update declarations.
- (Layout::symtab_xindex): New function.
- (Layout::dynsym_xindex): New function.
- (class Write_symbols_task): Add layout_ field.
- (Write_symbols_task::Write_symbols_task): Add layout parameter.
- Change caller.
- * output.cc (Output_section_headers::Output_section_headers): Add
- shstrtab_section parameter. Change all callers.
- (Output_section_headers::do_sized_write): Store overflow values
- for section count and section string table section index in
- section header zero.
- (Output_file_header::do_sized_write): Check for overflow of
- section count and section string table section index.
- (Output_symtab_xindex::do_write): New function.
- (Output_symtab_xindex::endian_do_write): New function.
- * output.h (class Output_section_headers): Add shstrtab_section_.
- Update declarations.
- (class Output_symtab_xindex): Define.
- (Output_section::has_out_shndx): New function.
- * symtab.cc (Symbol::init_fields): Initialize is_ordinary_shndx_
- field.
- (Symbol::init_base): Add st_shndx and is_ordinary parameters.
- Change all callers.
- (Sized_symbol::init): Likewise.
- (Symbol::output_section): Check for ordinary symbol.
- (Symbol_table::add_from_object): Remove orig_sym parameter. Add
- st_shndx, is_ordinary, and orig_st_shndx parameters. Change all
- callers.
- (Symbol_table::add_from_relobj): Add symndx_offset parameter.
- Change all callers. Simplify handling of symbols from sections
- not included in the link.
- (Symbol_table::add_from_dynobj): Handle ordinary symbol
- distinction.
- (Weak_alias_sorter::operator()): Assert that symbols are
- ordinary.
- (Symbol_table::sized_finalize_symbol): Handle ordinary symbol
- distinction.
- (Symbol_table::write_globals): Add symtab_xindex and dynsym_xindex
- parameters. Change all callers.
- (Symbol_table::sized_write_globals): Likewise. Handle ordinary
- symbol distinction. Use SHN_XINDEX when needed.
- (Symbol_table::write_section_symbol): Add symtab_xindex
- parameter. Change all callers.
- (Symbol_table::sized_write_section_symbol): Likewise. Use
- SHN_XINDEX when needed.
- * symtab.h (class Symbol): Add is_ordinary_shndx_ field. Update
- declarations.
- (Symbol::shndx): Add is_ordinary parameter. Change all callers.
- (Symbol::is_defined): Check is_ordinary.
- (Symbol::is_undefined, Symbol::is_weak_undefined): Likewise.
- (Symbol::is_absolute, Symbol::is_common): Likewise.
- (class Sized_symbol): Update declarations.
- (class Symbol_table): Update declarations.
- * resolve.cc (Symbol::override_base): Add st_shndx and is_ordinary
- parameters. Change all callers.
- (Sized_symbol::override): Likewise.
- (Symbol_table::override): Likewise.
- (symbol_to_bits): Add is_ordinary parameter. Change all callers.
- (Symbol_table::resolve): Remove orig_sym parameter. Add st_shndx,
- is_ordinary, and orig_st_shndx parameters. Change all callers.
- * copy-relocs.cc (Copy_relocs::emit_copy_reloc): Require symbol
- to be in an ordinary section.
- * dwarf_reader.cc (Sized_dwarf_line_info::symbol_section): Add
- object and is_ordinary parameters. Change all callers.
- (Sized_dwarf_line_info::read_relocs): Add object parameter.
- Change all callers. Don't add undefined or non-ordinary symbols
- to reloc_map_.
- (Sized_dwarf_line_info::read_line_mappings): Add object parameter.
- Change all callers.
- * dwarf_reader.h (class Sized_dwarf_line_info): Update
- declarations.
- * ehframe.cc (Eh_frame::read_fde): Check for ordinary symbol.
- * reloc.cc (Sized_relobj::do_read_relocs): Adjust section links.
- (Sized_relobj::relocate_sections): Likewise.
- * target-reloc.h (scan_relocs): Adjust section symbol index.
- (scan_relocatable_relocs): Likewise.
- * i386.cc (Scan::local): Check for ordinary symbols.
- * sparc.cc (Scan::local): Likewise.
- * x86_64.cc (Scan::local): Likewise.
- * testsuite/binary_unittest.cc (Sized_binary_test): Update calls
- to symbol_section_and_value.
- * testsuite/many_sections_test.cc: New file.
- * testsuite/Makefile.am (BUILT_SOURCES): Define.
- (check_PROGRAMS): Add many_sections_test.
- (many_sections_test_SOURCES): Define.
- (many_sections_test_DEPENDENCIES): Define.
- (many_sections_test_LDFLAGS): Define.
- (BUILT_SOURCES): Add many_sections_define.h.
- (many_sections_define.h): New target.
- (BUILT_SOURCES): Add many_sections_check.h.
- (many_sections_check.h): New target.
- (check_PROGRAMS): Add many_sections_r_test.
- (many_sections_r_test_SOURCES): Define.
- (many_sections_r_test_DEPENDENCIES): Define.
- (many_sections_r_test_LDFLAGS): Define.
- (many_sections_r_test_LDADD): Define.
- (many_sections_r_test.o): New target.
- * testsuite/Makefile.in: Rebuild.
- 2008-04-17 Cary Coutant <ccoutant@google.com>
- * errors.cc (Errors::info): New function.
- (gold_info): New function.
- * errors.h (Errors::info): New function.
- * gold.h (gold_info): New function.
- * object.cc (Input_objects::add_object): Print trace output.
- * options.cc (options::parse_set): New function.
- (General_options::parse_wrap): Deleted.
- (General_options::General_options): Deleted initializer.
- * options.h (options::String_set): New typedef.
- (options::parse_set): New function.
- (DEFINE_set): New macro.
- (General_options::wrap): Changed to use DEFINE_set. Changed
- callers of any_wrap_symbols and is_wrap_symbol.
- (General_options::trace, General_options::trace_symbol):
- New options.
- (General_options::any_wrap_symbols, General_options::is_wrap_symbol)
- (General_options::wrap_symbols_): Deleted.
- * symtab.cc (Symbol_table::add_from_object): Print trace output.
- 2008-04-17 David S. Miller <davem@davemloft.net>
- * options.cc (General_options::parse_V): New function.
- * options.h: Add entries for -V and -Qy.
- 2008-04-17 Ian Lance Taylor <iant@google.com>
- * common.cc (Symbol_table::allocate_commons): Remove options
- parameter. Change caller.
- (Symbol_table::do_allocate_commons): Remove options parameter.
- Change caller. Just call do_allocate_commons_list twice.
- (Symbol_table::do_allocate_commons_list): New function, broken out
- of do_allocate_commons.
- * common.h (class Allocate_commons_task): Remove options_ field.
- Update constructor.
- * symtab.cc (Symbol_table::Symbol_table): Initialize
- tls_commons_.
- (Symbol_table::add_from_object): Put TLS common symbols on
- tls_commons_ list.
- (Symbol_table::sized_finalize_symbol): Handle STT_TLS symbols
- which are IN_OUTPUT_DATA.
- * symtab.h (class Symbol_table): Add tls_commons_ field. Update
- allocate_commons and do_allocate_commons declarations. Declare
- do_allocate_commons_list.
- * gold.cc (queue_middle_tasks): Update creation of
- Allocate_commons_task to not pass options.
- * testsuite/Makefile.am (INCLUDES): Add -I.. .
- (TLS_TEST_C_FLAGS): New variable.
- (tls_test_c_pic.o): New target.
- (tls_test_shared.so): Link in tls_test_c_pic.o.
- (tls_test_c_pic_ie.o): New target.
- (tls_test_ie_shared.so): Link in tls_test_c_pic_ie.o.
- (tls_test_DEPENDENCIES, tls_test_LDADD): Add tls_test_c.o.
- (tls_test_c.o): New target.
- (tls_pic_test_DEPENDENCIES): Add tls_test_c_pic.o.
- (tls_pic_test_LDADD): Likewise.
- (tls_shared_gd_to_ie_test_DEPENDENCIES): Add tls_test_c_pic.o.
- (tls_shared_gd_to_ie_test_LDADD): Likewise.
- (tls_test_c_gnu2.o): New target.
- (tls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): Add
- tls_test_c_gnu2.o.
- (tls_shared_gnu2_gd_to_ie_test_LDADD): Likewise.
- (tls_test_gnu2_shared.so): Link in tls_test_c_gnu2.o.
- (tls_test_shared_nonpic.so): Link in tls_test_c.o.
- * testsuite/tls_test.cc: Include "config.h".
- (t_last): Call t11_last.
- * testsuite/tls_test.h (t11, t11_last): Declare.
- * testsuite/tls_test_c.c: New file.
- * testsuite/tls_test_main.cc (thread_routine): Call t11.
- * configure.ac: Check for OpenMP support.
- * configure, config.in, Makefile.in: Rebuild.
- * testsuite/Makefile.in: Rebuild.
- 2008-04-16 Cary Coutant <ccoutant@google.com>
- * i386.cc (Target_i386::define_tls_base_symbol): New function.
- (Target_i386::tls_base_symbol_defined_): New field.
- (Target_i386::Scan::local): Define _TLS_MODULE_BASE_ symbol.
- (Target_i386::Scan::global): Likewise.
- * symtab.cc (sized_finalize_symbol): Add check for TLS symbol.
- * x86_64.cc (Target_x86_64::define_tls_base_symbol): New function.
- (Target_x86_64::tls_base_symbol_defined_): New field.
- (Target_x86_64::Scan::local): Define _TLS_MODULE_BASE_ symbol.
- (Target_x86_64::Scan::global): Likewise.
- 2008-04-16 Cary Coutant <ccoutant@google.com>
- * symtab.h (Symbol::is_strong_undefined): Removed unused function.
- (Symbol::needs_plt_entry): Allow weak undefined symbols.
- (Symbol::needs_dynamic_reloc): Allow weak undefined symbols when
- building shared libraries.
- * testsuite/Makefile.am (weak_undef_nonpic_test): New target.
- (weak_undef_file1_nonpic.o, weak_undef_file2_nonpic.o)
- (weak_undef_lib_nonpic.so, alt/weak_undef_lib_nonpic.so): New targets.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/weak_undef.h: New file.
- * testsuite/weak_undef_file1.cc: Add extra test cases.
- * testsuite/weak_undef_file2.cc: Likewise.
- * testsuite/weak_undef_test.cc: Likewise.
- 2008-04-16 David S. Miller <davem@davemloft.net>
- * sparc.cc (Target_sparc::Scan): Change from struct to class.
- Add issued_non_pic_error_ field. Declare check_non_pic.
- (Target_sparc::Scan::check_non_pic): New function.
- (Target_sparc::Scan::local): Call check_non_pic as appropriate.
- (Target_sparc::Scan::global): Likewise.
- * configure.ac (FN_PTRS_IN_SO_WITHOUT_PIC): Add sparc64.
- * configure: Rebuild.
- * options.h (DEFINE_enable): New macro.
- (new_dtags): New enable option.
- (initfirst, interpose, loadfltr, nodefaultlib,
- nodelete, nodlopen, nodump): New -z options.
- * layout.cc (Layout:finish_dynamic_section): If new
- dtags enabled, emit DT_RUNPATH. Also, emit a
- DT_FLAGS_1 containing any specified -z flags.
- 2008-04-16 Ian Lance Taylor <iant@google.com>
- * copy-relocs.cc: New file.
- * copy-relocs.h: New file.
- * reloc.cc: Remove Copy_relocs code.
- * reloc.h: Likewise.
- * reloc-types.h (struct Reloc_types) [both versions]: Add
- get_reloc_addend_noerror.
- * output.h (class Output_data_reloc<elfcpp::SHT_REL>): Add
- variants of add_global which take an addend which must be zero.
- * i386.cc: Include "copy-relocs.h".
- (class Target_i386): Change type of copy_relocs_ to variable,
- update initializer.
- (Target_i386::copy_reloc): Rewrite to pass to Copy_relocs class.
- Change all callers.
- (Target_i386::do_finalize_sections): Change handling of
- copy_relocs_.
- * sparc.cc: Include "copy-relocs.h".
- (class Target_sparc): Change type of copy_relocs_ to variable,
- update initializer.
- (Target_sparc::copy_reloc): Rewrite to pass to Copy_relocs class.
- Change all callers.
- (Target_sparc::do_finalize_sections): Change handling of
- copy_relocs_.
- * x86_64.cc: Include "copy-relocs.h".
- (class Target_x86_64): Change type of copy_relocs_ to variable,
- update initializer.
- (Target_x86_64::copy_reloc): Rewrite to pass to Copy_relocs
- class. Change all callers.
- (Target_x86_64::do_finalize_sections): Change handling of
- copy_relocs_.
- * Makefile.am (CCFILES): Add copy-relocs.cc.
- (HFILES): Add copy-relocs.h.
- * Makefile.in, aclocal.m4, testsuite/Makefile.in: Rebuild.
- * testsuite/script_test_4.sh: Permit leading zeroes.
- 2008-04-15 Ian Lance Taylor <iant@google.com>
- * script-sections.cc (Script_sections::create_segments): Use
- header_size_adjustment even when there is enough room for the
- headers.
- * testsuite/script_test_4.sh: New file.
- * testsuite/script_test_4.t: New file.
- * testsuite/Makefile.am (check_SCRIPTS): Add script_test_4.sh.
- (check_DATA): Add script_test_4.stdout.
- (MOSTLYCLEANFILES): Likewise.
- (script_test_4): New target.
- (script_test_4.stdout): New target.
- * testsuite/Makefile.in: Rebuild.
- * sparc.cc: Add definitions for Output_data_plt_sparc class
- constants.
- 2008-04-14 David S. Miller <davem@davemloft.net>
- * sparc.cc: New file.
- * Makefile.am (TARGETSOURCES): Add sparc.cc
- (ALL_TARGETOBJS): Add sparc.$(OBJEXT)
- * configure.tgt: Document targ_extra_size and
- targ_extra_big_endian. Add entries for sparc-* and
- sparc64-*.
- * configure.ac: Handle targ_extra_size and
- targ_extra_big_endian.
- * Makefile.in: Rebuild.
- * configure: Likewise.
- * po/POTFILES.in: Likewise.
- * po/gold.pot: Likewise.
- 2008-04-14 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::Layout): Initialize sections_are_attached_.
- (Layout::get_output_section): Ignore SHF_WRITE and SHF_EXECINSTR
- in the name/type/flags to section mapping. Don't call
- allocate_output_section.
- (Layout::choose_output_section): Change parameter from adjust_name
- to is_input_section. Don't permit input sections after sections
- are attached to segments. Don't call allocate_output_section.
- (Layout::layout_eh_frame): Call update_flags_for_input_section,
- not write_enable_output_section.
- (Layout::make_output_section): Don't push to
- unattached_section_list_ nor call attach_to_segment. Call
- attach_section_to_segment if sections are attached.
- (Layout::attach_sections_to_segments): New function.
- (Layout::attach_section_to_segment): New function.
- (Layout::attach_allocated_section_to_segment): Rename from
- attach_to_segment. Remove flags parameter.
- (Layout::allocate_output_section): Remove function.
- (Layout::write_enable_output_section): Remove function.
- * layout.h (class Layout): Update for above changes. Add new
- field sections_are_attached_.
- * output.h (Output_section::update_flags_for_input_section): New
- function.
- * output.cc (Output_section::add_input_section): Call
- update_flags_for_input_section.
- * gold.cc (queue_middle_tasks): Call attach_sections_to_segments.
- 2008-04-11 Cary Coutant <ccoutant@google.com>
- * i386.cc (Target_i386::got_mod_index_entry): Restore code previously
- thought unnecessary.
- * x86_64.cc (Target_x86_64::got_mod_index_entry): Likewise.
- 2008-04-11 Ian Lance Taylor <iant@google.com>
- * output.h (class Output_section_data): Remove inline definition
- of set_addralign.
- * output.cc (Output_section_data::set_addralign): New function.
- 2008-04-11 Cary Coutant <ccoutant@google.com>
- Add support for TLS descriptors for i386 and x86_64.
- * i386.cc (Target_i386::Relocate::tls_desc_gd_to_ie): New function.
- (Target_i386::Relocate::tls_desc_gd_to_le): New function.
- (Target_i386::Got_type): Add GOT_TYPE_TLS_NOFFSET and
- GOT_TYPE_TLS_DESC.
- (Target_i386::got_mod_index_entry): Remove unnecessary code.
- (Target_i386::Scan::local): Implement R_386_TLS_GOTDESC and
- R_386_TLS_DESC_CALL relocations. Fix problem with initial-exec
- relocations.
- (Target_i386::Scan::global): Fix problem with GD-to-IE relaxation.
- Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations;
- Fix problem with initial-exec relocations.
- (Target_i386::Relocate::relocate_tls): Likewise.
- (Target_i386::Relocate::tls_gd_to_ie): Fix problem with GD-to-IE
- relaxation.
- * output.cc (Output_data_dynamic::Dynamic_entry::write): Add
- support for section-plus-offset dynamic table entries.
- * output.h (Output_data_dynamic::add_section_plus_offset): New function.
- (Output_data_dynamic::Dynamic_entry): Add support for
- section-plus-offset dynamic table entries.
- (Output_data_dynamic::Classification): Likewise.
- (Output_data_dynamic::classification_): Renamed offset_.
- * x86_64.cc (Target_x86_64::Relocate::tls_desc_gd_to_ie): New function.
- (Target_x86_64::Relocate::tls_desc_gd_to_le): New function.
- (Target_x86_64::make_plt_section): New function.
- (Target_x86_64::reserve_tlsdesc_entries): New function.
- (Output_data_plt_x86_64::Output_data_plt_x86_64): Add new parameter.
- (Output_data_plt_x86_64::reserve_tlsdesc_entry): New function.
- (Output_data_plt_x86_64::has_tlsdesc_entry): New function.
- (Output_data_plt_x86_64::get_tlsdesc_got_offset): New function.
- (Output_data_plt_x86_64::get_tlsdesc_plt_offset): New function.
- (Output_data_plt_x86_64::tlsdesc_plt_entry): New field.
- (Output_data_plt_x86_64::set_final_data_size): Move out of line;
- add extra PLT entry for TLS descriptors.
- (Output_data_plt_x86_64::got_): New field.
- (Output_data_plt_x86_64::tlsdesc_got_offset_): New field.
- (Output_data_plt_x86_64::Output_data_plt_x86_64): Initialize new
- fields.
- (Output_data_plt_x86_64::do_write): Write extra PLT entry for TLS
- descriptors.
- (Target_x86_64::make_plt_entry): Factor out make_plt_section.
- (Target_x86_64::got_mod_index_entry): Remove unnecessary code.
- (Target_x86_64::Scan::local): Implement R_386_TLS_GOTDESC and
- R_386_TLS_DESC_CALL relocations.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::do_finalize_sections): Add dynamic table entries
- for TLS descriptors.
- (Relocate::relocate_tls): Fix problem with GD-to-IE relaxation.
- Implement R_386_TLS_GOTDESC and R_386_TLS_DESC_CALL relocations.
- (Target_x86_64::Relocate::tls_gd_to_ie): Fix problem with
- GD-to-IE relaxation.
- * configure.ac: Export new conditional variables TLS_GNU2_DIALECT
- and TLS_DESCRIPTORS.
- * Makefile.in: Rebuild.
- * configure: Rebuild.
- * testsuite/Makefile.am (tls_shared_gd_to_ie_test): New target.
- (tls_test_shared2.so): New target.
- (tls_shared_gd_to_ie_test_SOURCES): New variable.
- (tls_shared_gd_to_ie_test_DEPENDENCIES): New variable.
- (tls_shared_gd_to_ie_test_LDFLAGS): New variable.
- (tls_shared_gd_to_ie_test_LDADD): New variable.
- (tls_shared_gnu2_gd_to_ie_test): New target.
- (tls_test_gnu2.o, tls_test_file2_gnu2.o, tls_test_gnu2_shared2.so):
- New targets.
- (tls_shared_gnu2_gd_to_ie_test_SOURCES): New variable.
- (ls_shared_gnu2_gd_to_ie_test_DEPENDENCIES): New variable.
- (tls_shared_gnu2_gd_to_ie_test_LDFLAGS): New variable.
- (tls_shared_gnu2_gd_to_ie_test_LDADD): New variable.
- (tls_shared_gnu2_test): New target.
- (tls_test_gnu2_shared.so): New target.
- (tls_shared_gnu2_test_SOURCES): New variable.
- (tls_shared_gnu2_test_DEPENDENCIES): New variable.
- (tls_shared_gnu2_test_LDFLAGS): New variable.
- (tls_shared_gnu2_test_LDADD): New variable.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/Makefile.
- 2008-04-11 Ian Lance Taylor <iant@google.com>
- * testsuite/Makefile.am (justsyms_2r.o): Add dependency on
- justsyms.t.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/script_test_2a.cc (script_test_string_a): Make 8 bytes
- long.
- * testsuite/script_test_2.cc (main): Adjust test.
- 2008-04-11 David S. Miller <davem@davemloft.net>
- Ian Lance Taylor <iant@google.com>
- * options.h (General_options): Add entries for '-Y' and
- '-relax'.
- * options.cc (General_options:finalize): If -Y was used, add those
- entries to the library path instead of the default "/lib" and
- "/usr/lib".
- 2008-04-11 David S. Miller <davem@davemloft.net>
- * testsuite/justsyms.t: Start at 0x100.
- * testsuite/justsyms_1.cc: Adjust justsyms_string assertion.
- * testsuite/script_test_2b.cc (script_test_string_b): Make 8 bytes
- long.
- * testsuite/script_test_2.cc: Adjust string and section length
- checks.
- 2008-04-09 Ian Lance Taylor <iant@google.com>
- PR gold/5996
- * script-sections.cc (Sections_element::allocate_to_segment): Add
- orphan parameter.
- (Output_section_definition::allocate_to_segment): Likewise.
- (Orphan_output_section::allocate_to_segment): Likewise.
- (Script_sections::attach_sections_using_phdrs_clause): Don't
- propagate non-PT_LOAD segments to orphan sections.
- * testsuite/Makefile.am (script_test_3.stdout): Generate using
- readelf rather than objdump.
- * testsuite/script_test_3.sh: Adjust accordingly. Test that
- .interp section and PT_INTERP segment are the same size.
- * testsuite/Makefile.in: Rebuild.
- * symtab.cc (Symbol_table::add_from_dynobj): Only look for weak
- aliases for symbols defined in the same object.
- * testsuite/Makefile.am (check_PROGRAMS): Add weak_alias_test.
- (weak_alias_test_SOURCES): New variable.
- (weak_alias_test_DEPENDENCIES): New variable.
- (weak_alias_test_LDFLAGS): New variable.
- (weak_alias_test_LDADD): New variable.
- (weak_alias_test_1_pic.o, weak_alias_test_1.so): New targets.
- (weak_alias_test_2_pic.o, weak_alias_test_2.so): New targets.
- (weak_alias_test_3.o): New target.
- (weak_alias_test_4_pic.o, weak_alias_test_4.so): New targets.
- * testsuite/weak_alias_test_main.cc: New file.
- * testsuite/weak_alias_test_1.cc: New file.
- * testsuite/weak_alias_test_2.cc: New file.
- * testsuite/weak_alias_test_3.cc: New file.
- 2008-04-08 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Add --noinhibit-exec option.
- * main.cc (main): Check --noinhibit-exec.
- * options.h (class General_options): Define --wrap as a special
- option. Add wrap_symbols_ field.
- (General_options::any_wrap_symbols): New function.
- (General_options::is_wrap_symbol): New function.
- * options.cc (General_options::parse_wrap): New function.
- (General_options::General_options): Initialize wrap_symbols_.
- * symtab.cc (Symbol_table::wrap_symbol): New function.
- (Symbol_table::add_from_object): Handle --wrap.
- * symtab.h (class Symbol_table): Declare wrap_symbol.
- * target.h (Target::wrap_char): New function.
- (Target::Target_info): Add wrap_char field.
- * i386.cc (Target_i386::i386_info): Initialize wrap_char.
- * x86_64.cc (Target_x86_64::x86_64_info): Likewise.
- * testsuite/testfile.cc (Target_test::test_target_info):
- Likewise.
- * errors.cc (Errors::undefined_symbol): Mention symbol version if
- there is one.
- * layout.h (class Layout): Add added_eh_frame_data_ field.
- * layout.cc (Layout::Layout): Initialize new field.
- (Layout::layout_eh_frame): Don't add eh_frame_data_ to .eh_frame
- output section until we find a section we merged successfully.
- * object.cc (Sized_relobj::check_eh_frame_flags): Don't require
- that the size be non-zero.
- * merge.cc (Object_merge_map::get_output_offset): Remove inline
- qualifier.
- 2008-04-08 Craig Silverstein <csilvers@google.com>
- * configure.ac: Export new conditional variable HAVE_ZLIB.
- * testsuite/Makefile.am (flagstest_o_specialfile): Condition
- on HAVE_ZLIB.
- (flagstest_o_specialfile_and_compress_debug_sections): Likewise.
- * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
- 2008-04-07 Ian Lance Taylor <iant@google.com>
- * version.cc (version_string): Set to "1.5".
- * x86_64.cc (Target_x86_64::Scan): Change from struct to class.
- Add issued_non_pic_error_ field. Declare check_non_pic.
- (Target_x86_64::Scan::check_non_pic): New function.
- (Target_x86_64::Scan::local): Call check_non_pic as appropriate.
- (Target_x86_64::Scan::global): Likewise.
- * output.cc (Output_reloc<SHT_REL>::local_section_offset): Add
- addend parameter. Change caller. Handle merge sections.
- (Output_reloc<SHT_REL>::symbol_value): Change parameter type from
- Address to Addend. Don't add in the result of
- local_section_offset, pass down the addend and use the returned
- value.
- * output.h (class Output_reloc<SHT_REL>): Add Addend typedef.
- Update declarations of local_section_offset and symbol_value.
- * testsuite/two_file_test_1.cc (t18): New function.
- * testsuite/two_file_test_2.cc (f18): New function.
- * testsuite/two_file_test_main.cc (main): Call t18.
- * testsuite/two_file_test.h (t18, f18): Declare.
- * configure.ac: Don't test for objdump, c++filt, or readelf.
- * testsuite/Makefile.am: Remove READELF and OBJDUMP_AND_CPPFILT
- conditionals.
- (TEST_READELF): New variable.
- (TEST_OBJDUMP, TEST_CXXFILT, TEST_STRIP): New variables.
- (check_PROGRAMS): Add two_file_strip_test.
- (two_file_strip_test): New target.
- (check_PROGRAMS): Add two_file_same_shared_strip_test.
- (two_file_same_shared_strip_test_SOURCES): New variable.
- (two_file_same_shared_strip_test_DEPENDENCIES): New variable.
- (two_file_same_shared_strip_test_LDFLAGS): New variable.
- (two_file_same_shared_strip_test_LDADD): New variable.
- (two_file_shared_strip.so): New target.
- (ver_test_2.syms, ver_test_4.syms): Use TEST_READELF.
- (ver_test_5.syms, ver_test_7.syms): Likewise.
- (ver_matching_test.stdout): Use TEST_OBJDUMP and TEST_CXXFILT.
- (strip_test_3.stdout): Use TEST_OBJDUMP.
- * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
- 2008-04-04 Cary Coutant <ccoutant@google.com>
- * symtab.h (Symbol::is_weak_undefined): New function.
- (Symbol::is_strong_undefined): New function.
- (Symbol::is_absolute): New function.
- (Symbol::needs_plt_entry): Exclude weak undefined symbols.
- (Symbol::needs_dynamic_reloc): Exclude weak undefined and
- absolute symbols.
- * testsuite/Makefile.am (check_PROGRAMS): Add weak_undef_test.
- (weak_undef_test): New target.
- * testsuite/Makefile.in: Rebuild.
- * testsuite/weak_undef_file1.cc: New file.
- * testsuite/weak_undef_file2.cc: New file.
- * testsuite/weak_undef_test.cc: New file.
- 2008-04-03 Craig Silverstein <csilvers@google.com>
- * compressed_output.h (class Output_compressed_section): Use
- unsigned buffer.
- * compressed_output.cc (zlib_compress): Use unsigned buffers,
- add zlib header.
- (zlib_compressed_suffix): Removed.
- (Output_compressed_section::set_final_data_size): Use unsigned
- buffers.
- * testsuite/Makefile.am (flagstest_compress_debug_sections):
- Fix linker invocation.
- (flagstest_o_specialfile_and_compress_debug_sections):
- Likewise.
- * testsuite/Makefile.in: Regenerated.
- 2008-04-02 David S. Miller <davem@davemloft.net>
- * dwarf_reader.cc (Sized_dwarf_line_info::read_header_prolog,
- Sized_dwarf_line_info::process_one_opcode): Use Swap_unaligned.
- 2008-04-02 Craig Silverstein <csilvers@google.com>
- * TODO: New file.
- 2008-04-02 Ian Lance Taylor <iant@google.com>
- * fileread.cc (File_read::find_view): Add byteshift and vshifted
- parameters. Update for new key type to views_. Change all
- callers.
- (File_read::read): Adjust for byteshift in returned view.
- (File_read::add_view): New function, broken out of
- find_and_make_view.
- (File_read::make_view): New function, broken out of
- find_and_make_view.
- (File_read::find_or_make_view): Add offset and aligned
- parameters. Rewrite accordingly. Change all callers.
- (File_read::get_view): Add offset and aligned parameters. Adjust
- for byteshift in return value.
- (File_read::get_lasting_view): Likewise.
- * fileread.h (class File_read): Update declarations.
- (class File_read::View): Add byteshift_ field. Add byteshift to
- constructor. Add byteshift method.
- * archive.h (Archive::clear_uncached_views): New function.
- (Archive::get_view): Add aligned parameter. Change all callers.
- * object.h (Object::get_view): Add aligned parameter. Change all
- callers.
- (Object::get_lasting_view): Likewise.
- * fileread.cc (File_read::release): Don't call clear_views if
- there are multiple objects.
- * fileread.h (File_read::clear_uncached_views): New function.
- * archive.cc (Add_archive_symbols::run): Call clear_uncached_views
- on the archive.
- 2008-03-31 Cary Coutant <ccoutant@google.com>
- Add thin archive support.
- * archive.cc (Archive::armagt): New const.
- (Archive::setup): Remove task parameter and calls to unlock.
- (Archive::unlock_nested_archives): New function.
- (Archive::read_header): Add nested_off parameter. Change
- all callers.
- (Archive::interpret_header): Likewise.
- (Archive::include_all_members): Change to handle thin
- archives.
- (Archive::include_member): Likewise.
- * archive.h (Archive::Archive): Add new parameters and
- initializers.
- (Archive::armagt): New const.
- (Archive::setup): Remove task parameter.
- (Archive::unlock_nested_archives): New function.
- (Archive::read_header): Add nested_off parameter.
- (Archive::interpret_header): Likewise.
- (Archive::Nested_archive_table): New typedef.
- (Archive::is_thin_archive_): New field.
- (Archive::nested_archives_): New field.
- (Archive::options_): New field.
- (Archive::dirpath_): New field.
- (Archive::task_): New field.
- * readsyms.cc (Read_symbols::do_read_symbols): Add check
- for thin archives. Pass additional parameters to
- Archive::Archive. Unlock the archive file after calling
- Archive::setup.
- 2008-03-29 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::do_define_as_constant): Don't force a
- version symbol to be local.
- * testsuite/ver_test_4.sh: New file.
- * testsuite/Makefile.am (check_SCRIPTS): Add ver_test_4.sh.
- (check_DATA): Add ver_test_4.syms.
- (ver_test_4.syms): New target.
- * testsuite/Makefile.in: Rebuild.
- * output.cc
- (Output_section::Input_section_sort_entry::has_priority): New
- function.
- (Output_section::Input_section_sort_entry::match_file_name): New
- function.
- (Output_section::Input_section_sort_entry::match_section_name):
- Remove.
- (Output_section::Input_section_sort_entry::match_section_name_prefix):
- Remove.
- (Output_section::Input_section_sort_entry::match_section_file):
- Remove.
- (Output_section::Input_section_sort_compare::operator()): Rewrite
- using new Input_section_sort_entry functions. Sort crtbegin and
- crtend first. Sort sections with no priority before sections with
- a priority.
- * testsuite/initpri1.c (d3): Check j != 4.
- (cd5): New constructor/destructor function.
- (main): Check j != 2.
- * symtab.cc (Symbol_table::add_from_object): If we don't use the
- new symbol when resolving, don't call set_is_default.
- * testsuite/ver_test_7.cc: New file.
- * testsuite/ver_test_7.sh: New file.
- * testsuite/Makefile.am (ver_test_7.so): New target.
- (ver_test_7.o): New target.
- (check_SCRIPTS): Add ver_test_7.sh.
- (check_DATA): Add ver_test_7.syms.
- (ver_test_7.syms): New target.
- 2008-03-28 Ian Lance Taylor <iant@google.com>
- * layout.cc (Layout::layout): If we see an input section with a
- name that needs sorting, set the must_sort flag for the output
- section.
- (Layout::make_output_section): If the name of the output section
- indicates that it might require sorting, set the may_sort flag.
- * output.h (Output_section::may_sort_attached_input_sections): New
- function.
- (Output_section::set_may_sort_attached_input_sections): New
- function.
- (Output_section::must_sort_attached_input_sections): New
- function.
- (Output_section::set_must_sort_attached_input_sections): New
- function.
- (class Output_section): Declare Input_section_sort_entry. Define
- Input_section_sort_compare. Declare
- sort_attached_input_sections. Add new fields:
- may_sort_attached_input_sections_,
- must_sort_attached_input_sections_,
- attached_input_sections_are_sorted_.
- * output.cc (Output_section::Output_section): Initialize new
- fields.
- (Output_section::add_input_section): Add an entry to
- input_sections_ if may_sort or must_sort are true.
- (Output_section::set_final_data_size): Call
- sort_attached_input_sections if necessary.
- (Output_section::Input_section_sort_entry): Define new class.
- (Output_section::Input_section_sort_compare::operator()): New
- function.
- (Output_section::sort_attached_input_sections): New function.
- * configure.ac: Check whether the compiler supports constructor
- priorities. Define a CONSTRUCTOR_PRIORITY automake conditional.
- * testsuite/initpri1.c: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add initpri1 if
- CONSTRUCTOR_PRIORITY.
- (initpri1_SOURCES, initpri1_DEPENDENCIES): New variables.
- (initpri1_LDFLAGS): New variable.
- * configure, Makefile.in, testsuite/Makefile.in: Rebuild.
- 2008-03-27 Ian Lance Taylor <iant@google.com>
- * common.cc (Sort_commons::operator): Correct sorting algorithm.
- * testsuite/common_test_1.c: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add common_test_1.
- (common_test_1_SOURCES): New variable.
- (common_test_1_DEPENDENCIES): New variable.
- (common_test_1_LDFLAGS): New variable.
- * symtab.cc (Symbol_table::add_from_object): Handle saw_undefined_
- and commons_ correctly when NAME/VERSION does not override
- NAME/NULL.
- * testsuite/ver_test_6.c: New file.
- * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_6
- (ver_test_6_SOURCES, ver_test_6_DEPENDENCIES): New variables.
- (ver_test_6_LDFLAGS, ver_test_6_LDADD): New variables.
- 2008-03-26 Ian Lance Taylor <iant@google.com>
- * symtab.cc (Symbol_table::add_from_relobj): Don't set the version
- of an undefined symbol from a version script.
- * testsuite/Makefile.am (ver_test_5.so): New target.
- (ver_test_5.o): New target.
- (check_SCRIPTS): Add ver_test_5.sh.
- (check_DATA): Add ver_test_5.syms.
- (ver_test_5.syms): New target.
- * testsuite/ver_test_5.cc: New file.
- * testsuite/ver_test_5.script: New file.
- * testsuite/ver_test_5.sh: New file.
- * Makefile.in, testsuite/Makefile.in: Rebuild.
- PR gold/5986
- Fix problems building gold with gcc 4.3.0.
- * gold.h (TEMPLATE_ATTRIBUTE_PRINTF_4): Define.
- (gold_error_at_location, gold_warning_at_location): Use it.
- * configure.ac: Check whether we can compile and use a template
- function with a printf attribute.
- * x86_64.cc (Target_x86_64::do_code_fill): Swap out a 32-bit value
- when jumping over bytes.
- * object.cc: Instantiate Object::read_section_data.
- * debug.h: Include <cstring>
- * dwarf_reader.cc: Include <algorithm>
- * main.cc: Include <cstring>.
- * options.cc: Include <cstring>.
- * output.cc: Include <cstring>.
- * script.cc: Include <cstring>.
- * script.h: Include <string>.
- * symtab.cc: Include <cstring> and <algorithm>.
- * target-select.cc: Include <cstring>.
- * version.cc: Include <string>.
- * testsuite/testmain.cc: Include <cstdlib>.
- * configure, config.in: Rebuild.
- 2008-03-25 Ian Lance Taylor <iant@google.com>
- * options.cc: Include "../bfd/bfdver.h".
- (options::help): Print bug reporting address.
- * version.cc (print_version): Adjust output for current value of
- BFD_VERSION_STRING.
- * NEWS: New file.
- * options.cc (options::help): Print list of supported targets.
- * target-select.h: Include <vector>.
- (class Target_selector): Make machine_, size_, and is_big_endian_
- fields const. Add bfd_name_ and instantiated_target_ fields.
- (Target_selector::Target_selector): Add bfd_name parameter.
- (Target_selector::recognize): Make non-virtual, call
- do_recognize.
- (Target_selector::recognize_by_name): Make non-virtual, call
- do_recognize_by_name.
- (Target_selector::supported_names): New function.
- (Target_selector::bfd_name): New function.
- (Target_selector::do_instantiate_target): New pure virtual
- function.
- (Target_selector::do_recognize): New virtual function.
- (Target_selector::do_recognize_by_name): New virtual function.
- (Target_selector::instantiate_target): New private function.
- (supported_target_names): Declare.
- * target-select.cc (Target_selector::Target_selector): Update for
- new parameter and fields.
- (select_target_by_name): Check that the name matches before
- calling recognize_by_name.
- (supported_target_names): New function.
- * i386.cc (class Target_selector_i386): Update Target_selector
- constructor call. Remove recognize and recognize_by_name. Add
- do_instantiate_target.
- * x86_64.cc (class Target_selector_x86_64): Likewise.
- * testsuite/testfile.cc (class Target_selector_test): Update for
- changes to Target_selector.
- * README: Rewrite, with some notes on unsupported features.
- 2008-03-24 Cary Coutant <ccoutant@google.com>
- * i386.cc (Target_i386::Got_type): New enum declaration.
- (Target_i386::Scan::local): Updated callers of Output_data_got
- member functions.
- (Target_i386::Scan::global): Likewise.
- (Target_i386::Relocate::relocate): Likewise.
- (Target_i386::Relocate::relocate_tls): Likewise.
- * object.h (Got_offset_list): New class.
- (Sized_relobj::local_has_got_offset): Added got_type parameter.
- (Sized_relobj::local_got_offset): Likewise.
- (Sized_relobj::set_local_got_offset): Likewise.
- (Sized_relobj::local_has_tls_got_offset): Removed.
- (Sized_relobj::local_tls_got_offset): Removed.
- (Sized_relobj::set_local_tls_got_offset): Removed.
- (Sized_relobj::Local_got_offsets): Changed to store a list of offsets.
- * output.cc (Output_data_got::add_global): Added got_type parameter.
- (Output_data_got::add_global_with_rel): Likewise.
- (Output_data_got::add_global_with_rela): Likewise.
- (Output_data_got::add_global_pair_with_rel): New function.
- (Output_data_got::add_global_pair_with_rela): New function.
- (Output_data_got::add_local): Added got_type parameter.
- (Output_data_got::add_local_with_rel): Likewise.
- (Output_data_got::add_local_with_rela): Likewise.
- (Output_data_got::add_local_pair_with_rel): New function.
- (Output_data_got::add_local_pair_with_rela): New function.
- (Output_data_got::add_global_tls): Removed.
- (Output_data_got::add_global_tls_with_rel): Removed.
- (Output_data_got::add_global_tls_with_rela): Removed.
- (Output_data_got::add_local_tls): Removed.
- (Output_data_got::add_local_tls_with_rel): Removed.
- (Output_data_got::add_local_tls_with_rela): Removed.
- * output.h (Output_data_got::add_global): Added got_type parameter.
- (Output_data_got::add_global_with_rel): Likewise.
- (Output_data_got::add_global_with_rela): Likewise.
- (Output_data_got::add_global_pair_with_rel): New function.
- (Output_data_got::add_global_pair_with_rela): New function.
- (Output_data_got::add_local): Added got_type parameter.
- (Output_data_got::add_local_with_rel): Likewise.
- (Output_data_got::add_local_with_rela): Likewise.
- (Output_data_got::add_local_pair_with_rel): New function.
- (Output_data_got::add_local_pair_with_rela): New function.
- (Output_data_got::add_global_tls): Removed.
- (Output_data_got::add_global_tls_with_rel): Removed.
- (Output_data_got::add_global_tls_with_rela): Removed.
- (Output_data_got::add_local_tls): Removed.
- (Output_data_got::add_local_tls_with_rel): Removed.
- (Output_data_got::add_local_tls_with_rela): Removed.
- * resolve.cc (Symbol::override_base_with_special): Removed
- reference to has_got_offset_ field.
- * symtab.cc (Symbol::init_fields): Replaced initialization
- of got_offset_ with got_offsets_. Removed initialization
- of has_got_offset_
- * symtab.h (Symbol::has_got_offset): Aded got_type parameter.
- (Symbol::got_offset): Likewise.
- (Symbol::set_got_offset): Likewise.
- (Symbol::has_tls_got_offset): Removed.
- (Symbol::tls_got_offset): Removed.
- (Symbol::set_tls_got_offset): Removed.
- (Symbol::got_offset_): Removed.
- (Symbol::tls_mod_got_offset_): Removed.
- (Symbol::tls_pair_got_offset_): Removed.
- (Symbol::got_offsets_): New field.
- (Symbol::has_got_offset): Removed.
- (Symbol::has_tls_mod_got_offset): Removed.
- (Symbol::has_tls_pair_got_offset): Removed.
- * x86_64.cc (Target_x86_64::Got_type): New enum declaration.
- (Target_x86_64::Scan::local): Updated callers of Output_data_got
- member functions.
- (Target_x86_64::Scan::global): Likewise.
- (Target_x86_64::Relocate::relocate): Likewise.
- (Target_x86_64::Relocate::relocate_tls): Likewise.
- 2008-03-25 Ben Elliston <bje@au.ibm.com>
- * yyscript.y: Fix spelling error in comment.
- 2008-03-24 Ian Lance Taylor <iant@google.com>
- * options.h (class General_options): Define build_id option.
- * layout.h (class Layout): Declare write_build_id, create_note,
- create_build_id. Add build_id_note_ member.
- * layout.cc: Include <cerrno>, <fcntl.h>, <unistd.h>,
- "libiberty.h", "md5.h", "sha1.h".
- (Layout::Layout): Initialize eh_frame_data_,
- eh_frame_hdr_section_, and build_id_note_.
- (Layout::finalize): Call create_build_id.
- (Layout::create_note): New function, broken out of
- Layout::create_gold_note.
- (Layout::create_gold_note): Call create_note.
- (Layout::create_build_id): New function.
- (Layout::write_build_id): New function.
- (Close_task_runner::run): Call write_build_id.
- * x86_64.cc: Correct license to GPLv3.
- 2008-03-23 Ian Lance Taylor <iant@google.com>
- * options.cc: Include "demangle.h".
- (parse_optional_string): New function.
- (parse_long_option): Handle takes_optional_argument.
- (parse_short_option): Update dash_z initializer. Handle
- takes_optional_argument.
- (General_options::General_options): Initialize do_demangle_.
- (General_options::finalize): Set do_demangle_. Handle demangling
- style.
- * options.h (parse_optional_string): Declare.
- (struct One_option): Add optional_arg field. Update constructor.
- Update call constructor calls. Add takes_optional_argument
- function.
- (DEFINE_var): Add optional_arg__ parameter. Change all callers.
- (DEFINE_optional_string): Define.
- (General_options::demangle): Change from DEFINE_bool to
- DEFINE_optional_string.
- (General_options::no_demangle): New function.
- (General_options::do_demangle): New function.
- (General_options::set_do_demangle): New function.
- (General_options::execstack_status_): Move definition to end of
- class definition.
- (General_options::static_): Likewise.
- (General_options::do_demangle_): New field.
- * object.cc (big_endian>::get_symbol_location_info): Call
- Options::do_demangle, not Options::demangle.
- * symtab.cc (demangle): Likewise.
- 2008-03-22 Ian Lance Taylor <iant@google.com>
- * gold.h: Include <cstddef> and <sys/types.h>
- * options.h: Include <cstring>.
- 2008-03-21 Ian Lance Taylor <iant@google.com>
- * Added source code to GNU binutils.
- Copyright (C) 2008-2015 Free Software Foundation, Inc.
- Copying and distribution of this file, with or without modification,
- are permitted in any medium without royalty provided the copyright
- notice and this notice are preserved.
- Local Variables:
- mode: change-log
- left-margin: 8
- fill-column: 74
- version-control: never
- End:
|